@NotThreadSafe public class BatchGraphStatementBuilder extends GraphStatementBuilderBase<BatchGraphStatementBuilder,BatchGraphStatement>
This class is mutable and not thread-safe.
consistencyLevel, executionProfile, executionProfileName, graphName, isIdempotent, node, readConsistencyLevel, subProtocol, timeout, timestamp, traversalSource, writeConsistencyLevel
Constructor and Description |
---|
BatchGraphStatementBuilder() |
BatchGraphStatementBuilder(BatchGraphStatement template) |
Modifier and Type | Method and Description |
---|---|
BatchGraphStatementBuilder |
addTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal traversal)
Add a traversal to this builder to include in the generated
BatchGraphStatement . |
BatchGraphStatementBuilder |
addTraversals(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal... traversals)
Add several traversals to this builder to include in the generated
BatchGraphStatement . |
BatchGraphStatementBuilder |
addTraversals(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals)
Add several traversals to this builder to include in the generated
BatchGraphStatement . |
BatchGraphStatement |
build()
Create the statement with the configuration defined by this builder object.
|
BatchGraphStatementBuilder |
clearTraversals()
Clears all the traversals previously added to this builder.
|
int |
getTraversalsCount()
Returns the number of traversals added to this statement so far.
|
addCustomPayload, buildCustomPayload, clearCustomPayload, setConsistencyLevel, setExecutionProfile, setExecutionProfileName, setGraphName, setIdempotence, setNode, setReadConsistencyLevel, setSubProtocol, setTimeout, setTimestamp, setTraversalSource, setWriteConsistencyLevel
public BatchGraphStatementBuilder()
public BatchGraphStatementBuilder(BatchGraphStatement template)
@NonNull public BatchGraphStatementBuilder addTraversal(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal traversal)
BatchGraphStatement
.@NonNull public BatchGraphStatementBuilder addTraversals(@NonNull Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals)
BatchGraphStatement
.@NonNull public BatchGraphStatementBuilder addTraversals(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal... traversals)
BatchGraphStatement
.@NonNull public BatchGraphStatementBuilder clearTraversals()
public int getTraversalsCount()
@NonNull public BatchGraphStatement build()
GraphStatementBuilderBase
build
in class GraphStatementBuilderBase<BatchGraphStatementBuilder,BatchGraphStatement>
Copyright © 2017–2020. All rights reserved.