Class MemoryComputeKey<A>
java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.MemoryComputeKey<A>
- All Implemented Interfaces:
Serializable,Cloneable
A
MemoryComputeKey specifies what keys will be used by a Memory during a GraphComputer computation.
A MemoryComputeKey maintains a BinaryOperator 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 the Memory value.
A MemoryComputeKey can be transient and thus, will not be accessible once the GraphComputer computation is complete.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetKey()inthashCode()booleanbooleanstatic <A> MemoryComputeKey<A>of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
-
Method Details
-
getKey
-
isTransient
public boolean isTransient() -
isBroadcast
public boolean isBroadcast() -
getReducer
-
hashCode
public int hashCode() -
equals
-
clone
-
of
public static <A> MemoryComputeKey<A> of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
-