public final class GraphBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GraphBuilder |
addConfiguration(java.lang.String taskName,
java.lang.String property,
java.lang.Object value) |
GraphBuilder |
addSource(java.lang.String name,
ISource source) |
GraphBuilder |
addSource(java.lang.String name,
ISource source,
int parallelism) |
GraphBuilder |
addTask(java.lang.String name,
ICompute task) |
GraphBuilder |
addTask(java.lang.String name,
ICompute task,
int parallelism) |
ComputeGraph |
build() |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
Edge edge) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation,
IFunction task) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation,
IFunction function,
MessageType dataType,
MessageType keyType) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation,
IFunction function,
MessageType dataType,
MessageType keyType,
TaskPartitioner partitioner) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation,
MessageType dataType) |
GraphBuilder |
connect(java.lang.String t1,
java.lang.String t2,
java.lang.String name,
java.lang.String operation,
MessageType dataType,
MessageType keyType) |
static GraphBuilder |
newBuilder() |
ComputeGraph |
operationMode(OperationMode mode)
Set the operation mode of the graph, default is set to stream
|
GraphBuilder |
setParallelism(java.lang.String taskName,
int parallel) |
boolean |
vertexExists(java.lang.String name) |
public static GraphBuilder newBuilder()
public GraphBuilder addSource(java.lang.String name, ISource source)
public GraphBuilder addSource(java.lang.String name, ISource source, int parallelism)
public GraphBuilder addTask(java.lang.String name, ICompute task)
public GraphBuilder addTask(java.lang.String name, ICompute task, int parallelism)
public GraphBuilder setParallelism(java.lang.String taskName, int parallel)
public GraphBuilder addConfiguration(java.lang.String taskName, java.lang.String property, java.lang.Object value)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation, IFunction task)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation, MessageType dataType, MessageType keyType)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation, IFunction function, MessageType dataType, MessageType keyType)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation, IFunction function, MessageType dataType, MessageType keyType, TaskPartitioner partitioner)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, java.lang.String name, java.lang.String operation, MessageType dataType)
public GraphBuilder connect(java.lang.String t1, java.lang.String t2, Edge edge)
public ComputeGraph build()
public ComputeGraph operationMode(OperationMode mode)
public boolean vertexExists(java.lang.String name)