public abstract class ExecutionOptions extends Object implements Serializable
for NebulaGraph Vertex Sink
ExecutionOptions executionOptions = new VertexExecutionOptions.ExecutionOptionBuilder()
.setGraphSpace("flinkSink")
.setTag("player")
.setIdIndex(0)
.setFields(Arrays.asList("name", "age"))
.setPositions(Arrays.asList(1, 2))
.setBatch(100)
.setPolicy("hash")
.builder();
for NebulaGraph Edge Sink
ExecutionOptions executionOptions = new EdgeExecutionOptions.ExecutionOptionBuilder()
.setGraphSpace("flinkSink")
.setEdge("friend")
.setSrcIndex(0)
.setDstIndex(1)
.setRankIndex(2)
.setFields(Arrays.asList("src", "dst", "degree", "start"))
.setPositions(Arrays.asList(0, 1, 3, 4))
.setBatch(2)
.builder();
for NebulaGraph Vertex Source
ExecutionOptions executionOptions = new VertexExecutionOptions.ExecutionOptionBuilder()
.setGraphSpace("flinkSink")
.setTag("player")
.setFields(Arrays.asList("name", "age"))
.setLimit(100)
.builder();
for NebulaGraph Edge Source
ExecutionOptions executionOptions1 = new EdgeExecutionOptions.ExecutionOptionBuilder()
.setGraphSpace("flinkSink")
.setEdge("friend")
.setFields(Arrays.asList("name", "age"))
//.setLimit(100)
//.setStartTime(0)
//.setEndTime(Long.MAX_VALUE)
.builder();
Row,
序列化表格| 限定符 | 构造器和说明 |
|---|---|
protected |
ExecutionOptions(String graphSpace,
String executeStatement,
List<String> fields,
List<Integer> positions,
boolean noColumn,
int limit,
long startTime,
long endTime,
long batch,
PolicyEnum policy) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getBatch() |
abstract DataTypeEnum |
getDataType() |
long |
getEndTime() |
String |
getExecuteStatement() |
List<String> |
getFields() |
String |
getGraphSpace() |
abstract String |
getLabel() |
int |
getLimit() |
PolicyEnum |
getPolicy() |
List<Integer> |
getPositions() |
long |
getStartTime() |
boolean |
isNoColumn() |
String |
toString() |
public String getGraphSpace()
public String getExecuteStatement()
public boolean isNoColumn()
public int getLimit()
public long getStartTime()
public long getEndTime()
public long getBatch()
public PolicyEnum getPolicy()
public abstract String getLabel()
public abstract DataTypeEnum getDataType()
Copyright © 2021. All rights reserved.