public abstract class NebulaBatchExecutor<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NebulaBatchExecutor.ExecutionException |
| Constructor and Description |
|---|
NebulaBatchExecutor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addToBatch(T record)
put record into buffer
|
abstract void |
clearBatch() |
abstract void |
executeBatch(com.vesoft.nebula.client.graph.net.Session session)
execute the statement
|
protected static void |
executeStatement(com.vesoft.nebula.client.graph.net.Session session,
String statement) |
abstract boolean |
isBatchEmpty() |
public abstract void addToBatch(T record)
record - represent vertex or edgepublic abstract void executeBatch(com.vesoft.nebula.client.graph.net.Session session)
throws IOException
session - graph sessionIOExceptionpublic abstract void clearBatch()
public abstract boolean isBatchEmpty()
protected static void executeStatement(com.vesoft.nebula.client.graph.net.Session session,
String statement)
throws IOException
IOExceptionCopyright © 2024. All rights reserved.