Traversable<PE,E>
public class DefaultTraversable<PE,E> extends Object implements Traversable<PE,E>
Constructor | Description |
---|---|
DefaultTraversable(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E> baseTraversal,
FramedGraph parentGraph) |
Modifier and Type | Method | 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> List<? extends N> |
next(int amount,
Class<N> kind) |
Return the next X objects in the traversal as a list.
|
<N> N |
next(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.
|
<N> N |
nextExplicit(Class<N> kind) |
Get the next object emitted from the pipeline.
|
VertexFrame |
nextOrAdd() |
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAdd(ClassInitializer<N> initializer) |
Get the next object emitted from the pipeline.
|
<N> N |
nextOrAdd(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 |
nextOrAddExplicit(Class<N> kind) |
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) |
public DefaultTraversable(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E> baseTraversal, FramedGraph parentGraph)
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<PE,E> getRawTraversal()
getRawTraversal
in interface Traversable<PE,E>
public <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)
traverse
in interface Traversable<PE,E>
public <N> N next(Class<N> kind)
Traversable
next
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The type of frame for the element.public <N> N nextExplicit(Class<N> kind)
Traversable
nextExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The type of frame for the element.public <N> N nextOrDefault(Class<N> kind, N defaultValue)
Traversable
nextOrDefault
in interface Traversable<PE,E>
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.public <N> N nextOrDefaultExplicit(Class<N> kind, N defaultValue)
Traversable
nextOrDefaultExplicit
in interface Traversable<PE,E>
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.public VertexFrame nextOrAdd()
Traversable
nextOrAdd
in interface Traversable<PE,E>
public <N> N nextOrAddExplicit(ClassInitializer<N> initializer)
Traversable
nextOrAddExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementinitializer
- the initializer for the frame which defines its type and may initialize propertiespublic <N> N nextOrAddExplicit(Class<N> kind)
Traversable
nextOrAddExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of frame.public <N> N nextOrAdd(ClassInitializer<N> initializer)
Traversable
nextOrAdd
in interface Traversable<PE,E>
N
- The type used to frame the elementinitializer
- the initializer for the frame which defines its type and may initialize propertiespublic <N> N nextOrAdd(Class<N> kind)
Traversable
nextOrAdd
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of frame.public <N> List<? extends N> next(int amount, Class<N> kind)
Traversable
next
in interface Traversable<PE,E>
N
- The type used to frame the elementamount
- the number of objects to returnkind
- the type of frame to for each element.public <N> List<? extends N> nextExplicit(int amount, Class<N> kind)
Traversable
nextExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementamount
- the number of objects to returnkind
- the type of frame to for each element.public <N> Iterator<N> frame(Class<N> kind)
Traversable
frame
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.public <N> Iterator<? extends N> frameExplicit(Class<N> kind)
Traversable
frameExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.public <N> List<? extends N> toList(Class<N> kind)
Traversable
toList
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.public <N> List<? extends N> toListExplicit(Class<N> kind)
Traversable
toListExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.public <N> Set<? extends N> toSet(Class<N> kind)
Traversable
toSet
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.public <N> Set<? extends N> toSetExplicit(Class<N> kind)
Traversable
toSetExplicit
in interface Traversable<PE,E>
N
- The type used to frame the elementkind
- The kind of framed elements to return.Copyright © 2018 Syncleus. All rights reserved.