public class ReduceConfig extends AbstractOpsConfig<ReduceConfig>
computeConnection, edgeName, messageSchema, opDataType, operationName, propertiesMap, source
Modifier | Constructor and Description |
---|---|
|
ReduceConfig(java.lang.String source,
ComputeConnection computeConnection) |
protected |
ReduceConfig(java.lang.String source,
java.lang.String operationName,
ComputeConnection computeConnection) |
Modifier and Type | Method and Description |
---|---|
protected Edge |
updateEdge(Edge newEdge) |
static void |
updateReduceEdge(Edge reduceEdge,
IFunction reductionFunction,
Op operation,
MessageType dataType) |
static void |
validateReduce(IFunction reductionFunction,
Op operation,
MessageType dataType) |
ReduceConfig |
withOperation(Op operation,
MessageType dataType) |
<T> ReduceConfig |
withReductionFunction(java.lang.Class<T> tClass,
IFunction<T> reductionFunction)
Define a function to handle the reduction
|
ReduceConfig |
withReductionFunction(IFunction reductionFunction) |
connect, failValidation, generateSchema, getEdgeName, getOpDataType, getSource, runValidation, viaEdge, withDataType, withMessageSchema, withProperties, withProperty
public ReduceConfig(java.lang.String source, ComputeConnection computeConnection)
protected ReduceConfig(java.lang.String source, java.lang.String operationName, ComputeConnection computeConnection)
public <T> ReduceConfig withReductionFunction(java.lang.Class<T> tClass, IFunction<T> reductionFunction)
tClass
- Class of IFunction
argumentspublic ReduceConfig withReductionFunction(IFunction reductionFunction)
public ReduceConfig withOperation(Op operation, MessageType dataType)
public static void validateReduce(IFunction reductionFunction, Op operation, MessageType dataType)
public static void updateReduceEdge(Edge reduceEdge, IFunction reductionFunction, Op operation, MessageType dataType)
protected Edge updateEdge(Edge newEdge)
updateEdge
in class AbstractOpsConfig<ReduceConfig>