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 Summary
All 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
- 
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)
 
 - 
 
 -