Class MemoryComputeKey<A>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.computer.MemoryComputeKey<A>
-
- All Implemented Interfaces:
Serializable
,Cloneable
public final class MemoryComputeKey<A> extends Object implements Serializable, Cloneable
AMemoryComputeKey
specifies what keys will be used by aMemory
during aGraphComputer
computation. A MemoryComputeKey maintains aBinaryOperator
which specifies how to reduce parallel values into a single value. A MemoryComputeKey can be broadcasted and as such, the workers will receive mutations to theMemory
value. A MemoryComputeKey can be transient and thus, will not be accessible once theGraphComputer
computation is complete.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MemoryComputeKey<A>
clone()
boolean
equals(Object object)
String
getKey()
BinaryOperator<A>
getReducer()
int
hashCode()
boolean
isBroadcast()
boolean
isTransient()
static <A> MemoryComputeKey<A>
of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
-
-
-
Method Detail
-
getKey
public String getKey()
-
isTransient
public boolean isTransient()
-
isBroadcast
public boolean isBroadcast()
-
getReducer
public BinaryOperator<A> getReducer()
-
clone
public MemoryComputeKey<A> clone()
-
of
public static <A> MemoryComputeKey<A> of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
-
-