Interface PopContaining
-
- All Known Subinterfaces:
AddEdgeStepContract<S>,AddElementStepContract<S,E>,AddPropertyStepContract<S>,AddVertexStepContract<S>,CallStepContract<S,E>,MergeStepContract<S,E,C>,Scoping,TraversalOptionParent<M,S,E>,TraversalParent
- All Known Implementing Classes:
AbstractAddEdgeStepPlaceholder,AbstractAddElementStepPlaceholder,AbstractAddVertexStepPlaceholder,AbstractMergeElementStepPlaceholder,AddEdgeStartStep,AddEdgeStartStepPlaceholder,AddEdgeStep,AddEdgeStepPlaceholder,AddPropertyStep,AddPropertyStepPlaceholder,AddVertexStartStep,AddVertexStartStepPlaceholder,AddVertexStep,AddVertexStepPlaceholder,AggregateGlobalStep,AggregateLocalStep,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,MatchStep.MatchEndStep,MatchStep.MatchStartStep,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,WhereTraversalStep.WhereEndStep,WhereTraversalStep.WhereStartStep
public interface PopContainingThePopContaininginterface is implemented by traversal steps that maintain Pop instructions for label access. It provides a mechanism to track and manage how labeled elements should be accessed usingPopsemantics (first, last, all, or mixed). In Gremlin traversals, various elements can be labeled and later accessed via these labels. ThePopenum determines how to access these labeled elements when there are multiple values associated with the same label.
Steps implementing this interface maintain a collection of// Simple example with default Pop.last behavior gremlin> g.V().as("a").out().as("a").select("a") ==>[v[2]] // returns the last element labeled "a" // Using Pop.first to get the first labeled element gremlin> g.V().as("a").out().as("a").select(first, "a") ==>[v[1]] // returns the first element labeled "a" // Using Pop.all to get all labeled elements gremlin> g.V().as("a").out().as("a").select(all, "a") ==>[v[1], v[2]] // returns all elements labeled "a"PopContaining.PopInstructionobjects, each containing a label and aPopvalue that specifies how to access elements with that label.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPopContaining.PopInstructionA class for storing the Scope Context.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<PopContaining.PopInstruction>getPopInstructions()
-
-
-
Method Detail
-
getPopInstructions
Set<PopContaining.PopInstruction> getPopInstructions()
-
-