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 AMemoryComputeKeyspecifies what keys will be used by aMemoryduring aGraphComputercomputation. A MemoryComputeKey maintains aBinaryOperatorwhich specifies how to reduce parallel values into a single value. A MemoryComputeKey can be broadcasted and as such, the workers will receive mutations to theMemoryvalue. A MemoryComputeKey can be transient and thus, will not be accessible once theGraphComputercomputation is complete.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MemoryComputeKey<A>clone()booleanequals(Object object)StringgetKey()BinaryOperator<A>getReducer()inthashCode()booleanisBroadcast()booleanisTransient()static <A> MemoryComputeKey<A>of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
 
- 
- 
- 
Method Detail- 
getKeypublic String getKey() 
 - 
isTransientpublic boolean isTransient() 
 - 
isBroadcastpublic boolean isBroadcast() 
 - 
getReducerpublic BinaryOperator<A> getReducer() 
 - 
clonepublic MemoryComputeKey<A> clone() 
 - 
ofpublic static <A> MemoryComputeKey<A> of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient) 
 
- 
 
-