public interface Traversable<PE,E>
Modifier and Type | Method and Description |
---|---|
<N> Iterator<N> |
frame(Class<N> kind)
Return an iterator of framed elements.
|
<N> Iterator<? extends N> |
frameExplicit(Class<N> kind)
Return an iterator of framed elements.
|
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E> |
getRawTraversal() |
<N> N |
next(Class<N> kind)
Get the next object emitted from the pipeline.
|
<N> List<? extends N> |
next(int amount,
Class<N> kind)
Return the next X objects in the traversal as a list.
|
<N> N |
nextExplicit(Class<N> kind)
Get the next object emitted from the pipeline.
|
<N> List<? extends N> |
nextExplicit(int amount,
Class<N> kind)
Return the next X objects in the traversal as a list.
|
VertexFrame |
nextOrAdd()
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAdd(Class<N> kind)
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAdd(ClassInitializer<N> initializer)
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAddExplicit(Class<N> kind)
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAddExplicit(ClassInitializer<N> initializer)
Get the next object emitted from the pipeline.
|
<N> N |
nextOrDefault(Class<N> kind,
N defaultValue)
Get the next object emitted from the pipeline.
|
<N> N |
nextOrDefaultExplicit(Class<N> kind,
N defaultValue)
Get the next object emitted from the pipeline.
|
<N> List<? extends N> |
toList(Class<N> kind)
Return a list of all the objects in the pipeline.
|
<N> List<? extends N> |
toListExplicit(Class<N> kind)
Return a list of all the objects in the pipeline.
|
<N> Set<? extends N> |
toSet(Class<N> kind)
Return a set of all the objects in the pipeline.
|
<N> Set<? extends N> |
toSetExplicit(Class<N> kind)
Return a set of all the objects in the pipeline.
|
<T extends Traversable<?,?>> |
traverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E>,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser) |
<T extends Traversable<?,?>> T traverse(Function<org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E>,org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,?>> traverser)
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E> getRawTraversal()
<N> N next(Class<N> kind)
N
- The type used to frame the elementkind
- The type of frame for the element.<N> N nextExplicit(Class<N> kind)
N
- The type used to frame the elementkind
- The type of frame for the element.<N> N nextOrDefault(Class<N> kind, N defaultValue)
N
- The type used to frame the elementkind
- The type of frame for the element.defaultValue
- The object to return if no next object exists.<N> N nextOrDefaultExplicit(Class<N> kind, N defaultValue)
N
- The type used to frame the elementkind
- The type of frame for the element.defaultValue
- The object to return if no next object exists.VertexFrame nextOrAdd()
<N> N nextOrAddExplicit(ClassInitializer<N> initializer)
N
- The type used to frame the elementinitializer
- the initializer for the frame which defines its type and may initialize properties<N> N nextOrAddExplicit(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of frame.<N> N nextOrAdd(ClassInitializer<N> initializer)
N
- The type used to frame the elementinitializer
- the initializer for the frame which defines its type and may initialize properties<N> N nextOrAdd(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of frame.<N> List<? extends N> next(int amount, Class<N> kind)
N
- The type used to frame the elementamount
- the number of objects to returnkind
- the type of frame to for each element.<N> List<? extends N> nextExplicit(int amount, Class<N> kind)
N
- The type used to frame the elementamount
- the number of objects to returnkind
- the type of frame to for each element.<N> Iterator<N> frame(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.<N> Iterator<? extends N> frameExplicit(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.<N> List<? extends N> toList(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.<N> List<? extends N> toListExplicit(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.<N> Set<? extends N> toSet(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.<N> Set<? extends N> toSetExplicit(Class<N> kind)
N
- The type used to frame the elementkind
- The kind of framed elements to return.Copyright © 2017 Syncleus. All rights reserved.