public class NebulaVertexBatchExecutor extends NebulaBatchExecutor<org.apache.flink.types.Row>
NebulaBatchExecutor.ExecutionException| Constructor and Description |
|---|
NebulaVertexBatchExecutor(VertexExecutionOptions executionOptions,
VidTypeEnum vidType,
Map<String,Integer> schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToBatch(org.apache.flink.types.Row record)
put record into buffer
|
void |
clearBatch() |
void |
executeBatch(com.vesoft.nebula.client.graph.net.Session session)
execute the statement
|
boolean |
isBatchEmpty() |
executeStatementpublic NebulaVertexBatchExecutor(VertexExecutionOptions executionOptions, VidTypeEnum vidType, Map<String,Integer> schema)
public void addToBatch(org.apache.flink.types.Row record)
addToBatch in class NebulaBatchExecutor<org.apache.flink.types.Row>record - represent vertex or edgepublic void clearBatch()
clearBatch in class NebulaBatchExecutor<org.apache.flink.types.Row>public boolean isBatchEmpty()
isBatchEmpty in class NebulaBatchExecutor<org.apache.flink.types.Row>public void executeBatch(com.vesoft.nebula.client.graph.net.Session session)
throws IOException
NebulaBatchExecutorexecuteBatch in class NebulaBatchExecutor<org.apache.flink.types.Row>session - graph sessionIOExceptionCopyright © 2024. All rights reserved.