Interface TraversalParent
-
- All Superinterfaces:
AutoCloseable,PopContaining
- All Known Subinterfaces:
AddEdgeStepContract<S>,AddElementStepContract<S,E>,AddPropertyStepContract<S>,AddVertexStepContract<S>,CallStepContract<S,E>,MergeStepContract<S,E,C>,TraversalOptionParent<M,S,E>
- All Known Implementing Classes:
AbstractAddEdgeStepPlaceholder,AbstractAddElementStepPlaceholder,AbstractAddVertexStepPlaceholder,AbstractMergeElementStepPlaceholder,AddEdgeStartStep,AddEdgeStartStepPlaceholder,AddEdgeStep,AddEdgeStepPlaceholder,AddPropertyStep,AddPropertyStepPlaceholder,AddVertexStartStep,AddVertexStartStepPlaceholder,AddVertexStep,AddVertexStepPlaceholder,AggregateStep,AndStep,BranchStep,CallStep,CallStepPlaceholder,ChooseStep,CoalesceStep,CombineStep,ConcatStep,ConnectedComponentVertexProgramStep,ConnectiveStep,DateDiffStep,DedupGlobalStep,DifferenceStep,DisjunctStep,ElementMapStep,EmptyStep,FormatStep,GroupCountSideEffectStep,GroupCountStep,GroupSideEffectStep,GroupStep,IndexStep,IntersectStep,LocalStep,MatchStep,MathStep,MergeEdgeStep,MergeEdgeStepPlaceholder,MergeElementStep,MergeStep,MergeVertexStep,MergeVertexStepPlaceholder,NotStep,OptionalStep,OrderGlobalStep,OrderLocalStep,OrStep,PageRankVertexProgramStep,PathFilterStep,PathStep,PeerPressureVertexProgramStep,ProductStep,ProjectStep,PropertyMapStep,RepeatStep,SackValueStep,SampleGlobalStep,SelectOneStep,SelectStep,ShortestPathVertexProgramStep,SplitGlobalStep,SplitLocalStep,TraversalFilterStep,TraversalFlatMapStep,TraversalMapStep,TraversalSelectStep,TraversalSideEffectStep,TraversalVertexProgramStep,TreeSideEffectStep,TreeStep,UnionStep,WherePredicateStep,WhereTraversalStep
public interface TraversalParent extends PopContaining, AutoCloseable
Indicates that a step can contain child Traversals. Any step which implements this interface should override at least one ofgetGlobalChildren()orgetLocalChildren(). All TraversalParents should call#integrateChild(Traversal.Admin, ?>)for all child traversals as they are added to the step, and TraversalParents should overrideStep#setTraversal(Traversal.Admin, ?>), and call#integrateChild(Traversal.Admin, ?>)again for all child traversals.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstruction
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaddGlobalChild(Traversal.Admin<?,?> globalChildTraversal)default voidaddLocalChild(Traversal.Admin<?,?> localChildTraversal)default Step<?,?>asStep()default voidclose()default <S,E>
List<Traversal.Admin<S,E>>getGlobalChildren()Gets a list of all "global" child traversals for this step.default <S,E>
List<Traversal.Admin<S,E>>getLocalChildren()Gets a list of all "local" child traversals for this step.default HashSet<PopContaining.PopInstruction>getPopInstructions()default Set<TraverserRequirement>getSelfAndChildRequirements(TraverserRequirement... selfRequirements)default <S,E>
Traversal.Admin<S,E>integrateChild(Traversal.Admin<?,?> childTraversal)default voidremoveGlobalChild(Traversal.Admin<?,?> globalChildTraversal)default voidremoveLocalChild(Traversal.Admin<?,?> localChildTraversal)default voidreplaceLocalChild(Traversal.Admin<?,?> oldTraversal, Traversal.Admin<?,?> newTraversal)
-
-
-
Method Detail
-
getGlobalChildren
default <S,E> List<Traversal.Admin<S,E>> getGlobalChildren()
Gets a list of all "global" child traversals for this step. A "global" traversal is one which evaluates across all of its parents incoming traversers at once. This is typically used in cases where the child traversal represents a branch of traversal flow. SeeBranchStepas an example.
-
getLocalChildren
default <S,E> List<Traversal.Admin<S,E>> getLocalChildren()
Gets a list of all "local" child traversals for this step. A "local" traversal is one which is evaluated independently for each incoming traverser to the parent step. This is typically used in cases where the child is used to process or augment each traverser individually. SeeLocalSteporByModulatingas examples.
-
addLocalChild
default void addLocalChild(Traversal.Admin<?,?> localChildTraversal)
-
addGlobalChild
default void addGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
-
removeLocalChild
default void removeLocalChild(Traversal.Admin<?,?> localChildTraversal)
-
removeGlobalChild
default void removeGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
-
replaceLocalChild
default void replaceLocalChild(Traversal.Admin<?,?> oldTraversal, Traversal.Admin<?,?> newTraversal)
-
getSelfAndChildRequirements
default Set<TraverserRequirement> getSelfAndChildRequirements(TraverserRequirement... selfRequirements)
-
asStep
default Step<?,?> asStep()
-
integrateChild
default <S,E> Traversal.Admin<S,E> integrateChild(Traversal.Admin<?,?> childTraversal)
-
close
default void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getPopInstructions
default HashSet<PopContaining.PopInstruction> getPopInstructions()
- Specified by:
getPopInstructionsin interfacePopContaining
-
-