public abstract class TraversalBatch extends Object implements Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal>
DseGraph.batch()
.Constructor and Description |
---|
TraversalBatch() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal graphTraversal)
Add one traversal to this
TraversalBatch instance (thread-safe). |
abstract void |
addAll(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> newTraversals)
Add multiple traversals to this
TraversalBatch instance (thread-safe). |
abstract GraphStatement |
asGraphStatement()
|
abstract int |
size()
Return the number of operations currently contained in the
TraversalBatch . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, iterator, spliterator
public abstract void add(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal graphTraversal)
TraversalBatch
instance (thread-safe).graphTraversal
- the mutation traversal to add to this TraversalBatch
instance.public abstract void addAll(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> newTraversals)
TraversalBatch
instance (thread-safe).newTraversals
- the mutation traversals to add to this TraversalBatch
instance.public abstract int size()
TraversalBatch
.
Calling this regularly is not great for performance. Also, this number may not be
accurate in heavily concurrent situations.TraversalBatch
.public abstract GraphStatement asGraphStatement()
Copyright © 2012–2018. All rights reserved.