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, waitforEach, spliteratorpublic void add(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal graphTraversal)
TraversalBatchTraversalBatch instance (thread-safe).add in class TraversalBatchgraphTraversal - the mutation traversal to add to this TraversalBatch instance.public void addAll(Iterable<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> newTraversals)
TraversalBatchTraversalBatch instance (thread-safe).addAll in class TraversalBatchnewTraversals - the mutation traversals to add to this TraversalBatch instance.public int size()
TraversalBatchTraversalBatch.
Calling this regularly is not great for performance. Also, this number may not be
accurate in heavily concurrent situations.size in class TraversalBatchTraversalBatch.public GraphStatement asGraphStatement()
TraversalBatchasGraphStatement in class TraversalBatchpublic Iterator<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal> iterator()
Copyright © 2012–2018. All rights reserved.