public final class MemoryComputeKey<A> extends Object implements Serializable, Cloneable
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.| Modifier and Type | Method and 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)  | 
public String getKey()
public boolean isTransient()
public boolean isBroadcast()
public BinaryOperator<A> getReducer()
public MemoryComputeKey<A> clone()
public static <A> MemoryComputeKey<A> of(String key, BinaryOperator<A> reducer, boolean isBroadcast, boolean isTransient)
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.