@Immutable public class DefaultBatchGraphStatement extends GraphStatementBase<BatchGraphStatement> implements BatchGraphStatement
ASYNC, SYNC
Constructor and Description |
---|
DefaultBatchGraphStatement(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals,
Boolean isIdempotent,
Duration timeout,
com.datastax.oss.driver.api.core.metadata.Node node,
long timestamp,
com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile,
String executionProfileName,
Map<String,ByteBuffer> customPayload,
String graphName,
String traversalSource,
String subProtocol,
com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel,
com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel,
com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel) |
Modifier and Type | Method and Description |
---|---|
DefaultBatchGraphStatement |
addTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal newTraversal)
Add a traversal to this statement.
|
DefaultBatchGraphStatement |
addTraversals(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> newTraversals)
Adds several traversals to this statement.
|
Iterator<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> |
iterator() |
protected BatchGraphStatement |
newInstance(Boolean isIdempotent,
Duration timeout,
com.datastax.oss.driver.api.core.metadata.Node node,
long timestamp,
com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile,
String executionProfileName,
Map<String,ByteBuffer> customPayload,
String graphName,
String traversalSource,
String subProtocol,
com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel,
com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel,
com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel) |
int |
size()
Get the number of traversals already added to this statement.
|
getConsistencyLevel, getCustomPayload, getExecutionProfile, getExecutionProfileName, getGraphName, getNode, getReadConsistencyLevel, getSubProtocol, getTimeout, getTimestamp, getTraversalSource, getWriteConsistencyLevel, isIdempotent, setConsistencyLevel, setCustomPayload, setExecutionProfile, setExecutionProfileName, setGraphName, setIdempotent, setNode, setReadConsistencyLevel, setSubProtocol, setTimeout, setTimestamp, setTraversalSource, setWriteConsistencyLevel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, builder, newInstance, newInstance, newInstance
getConsistencyLevel, getGraphName, getKeyspace, getReadConsistencyLevel, getRoutingKey, getRoutingKeyspace, getRoutingToken, getSubProtocol, getTimeout, getTimestamp, getTraversalSource, getWriteConsistencyLevel, isTracing, setConsistencyLevel, setCustomPayload, setExecutionProfile, setExecutionProfileName, setGraphName, setIdempotent, setNode, setReadConsistencyLevel, setSubProtocol, setTimeout, setTimestamp, setTraversalSource, setWriteConsistencyLevel
getCustomPayload, getExecutionProfile, getExecutionProfileName, getNode, isIdempotent
forEach, spliterator
public DefaultBatchGraphStatement(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> traversals, Boolean isIdempotent, Duration timeout, com.datastax.oss.driver.api.core.metadata.Node node, long timestamp, com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile, String executionProfileName, Map<String,ByteBuffer> customPayload, String graphName, String traversalSource, String subProtocol, com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel, com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel, com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel)
@NonNull public DefaultBatchGraphStatement addTraversal(@NonNull org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal newTraversal)
BatchGraphStatement
BatchGraphStatement.builder()
, or the BatchGraphStatement.addTraversals(Iterable)
method instead to avoid intermediary
copies.addTraversal
in interface BatchGraphStatement
@NonNull public DefaultBatchGraphStatement addTraversals(@NonNull Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> newTraversals)
BatchGraphStatement
BatchGraphStatement.builder()
instead to avoid intermediary copies.addTraversals
in interface BatchGraphStatement
public int size()
BatchGraphStatement
size
in interface BatchGraphStatement
protected BatchGraphStatement newInstance(Boolean isIdempotent, Duration timeout, com.datastax.oss.driver.api.core.metadata.Node node, long timestamp, com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile, String executionProfileName, Map<String,ByteBuffer> customPayload, String graphName, String traversalSource, String subProtocol, com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel, com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel, com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel)
newInstance
in class GraphStatementBase<BatchGraphStatement>
Copyright © 2017–2019. All rights reserved.