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