Class BatchGraphStatementBuilder
- java.lang.Object
-
- com.datastax.dse.driver.api.core.graph.GraphStatementBuilderBase<BatchGraphStatementBuilder,BatchGraphStatement>
-
- com.datastax.dse.driver.api.core.graph.BatchGraphStatementBuilder
-
@NotThreadSafe public class BatchGraphStatementBuilder extends GraphStatementBuilderBase<BatchGraphStatementBuilder,BatchGraphStatement>
A builder to create a batch graph statement.This class is mutable and not thread-safe.
-
-
Field Summary
-
Fields inherited from class com.datastax.dse.driver.api.core.graph.GraphStatementBuilderBase
consistencyLevel, executionProfile, executionProfileName, graphName, isIdempotent, node, readConsistencyLevel, subProtocol, timeout, timestamp, traversalSource, writeConsistencyLevel
-
-
Constructor Summary
Constructors Constructor Description BatchGraphStatementBuilder()BatchGraphStatementBuilder(BatchGraphStatement template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchGraphStatementBuilderaddTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal traversal)Add a traversal to this builder to include in the generatedBatchGraphStatement.BatchGraphStatementBuilderaddTraversals(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals)Add several traversals to this builder to include in the generatedBatchGraphStatement.BatchGraphStatementBuilderaddTraversals(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal... traversals)Add several traversals to this builder to include in the generatedBatchGraphStatement.BatchGraphStatementbuild()Create the statement with the configuration defined by this builder object.BatchGraphStatementBuilderclearTraversals()Clears all the traversals previously added to this builder.intgetTraversalsCount()Returns the number of traversals added to this statement so far.-
Methods inherited from class com.datastax.dse.driver.api.core.graph.GraphStatementBuilderBase
addCustomPayload, buildCustomPayload, clearCustomPayload, setConsistencyLevel, setExecutionProfile, setExecutionProfileName, setGraphName, setIdempotence, setNode, setReadConsistencyLevel, setSubProtocol, setTimeout, setTimestamp, setTraversalSource, setWriteConsistencyLevel
-
-
-
-
Constructor Detail
-
BatchGraphStatementBuilder
public BatchGraphStatementBuilder()
-
BatchGraphStatementBuilder
public BatchGraphStatementBuilder(BatchGraphStatement template)
-
-
Method Detail
-
addTraversal
@NonNull public BatchGraphStatementBuilder addTraversal(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal traversal)
Add a traversal to this builder to include in the generatedBatchGraphStatement.
-
addTraversals
@NonNull public BatchGraphStatementBuilder addTraversals(@NonNull Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals)
Add several traversals to this builder to include in the generatedBatchGraphStatement.
-
addTraversals
@NonNull public BatchGraphStatementBuilder addTraversals(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal... traversals)
Add several traversals to this builder to include in the generatedBatchGraphStatement.
-
clearTraversals
@NonNull public BatchGraphStatementBuilder clearTraversals()
Clears all the traversals previously added to this builder.
-
getTraversalsCount
public int getTraversalsCount()
Returns the number of traversals added to this statement so far.
-
build
@NonNull public BatchGraphStatement build()
Description copied from class:GraphStatementBuilderBaseCreate the statement with the configuration defined by this builder object.- Specified by:
buildin classGraphStatementBuilderBase<BatchGraphStatementBuilder,BatchGraphStatement>
-
-