Class SubgraphStep
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectBarrierStep<Edge>
org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SubgraphStep
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<Edge>>,Step<Edge,,Edge> Barrier<TraverserSet<Edge>>,Generating,LocalBarrier<Edge>,MemoryComputing<TraverserSet<Edge>>,SideEffectCapable
A side-effect step that produces an edge induced subgraph.
- Author:
- Stephen Mallette (http://stephen.genoprime.com), Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectBarrierStep
barrierFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.The side-effect key of the step.inthashCode()protected voidsideEffect(Traverser.Admin<Edge> traverser) toString()Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectBarrierStep
addBarrier, hasNextBarrier, nextBarrier, processAllStarts, processNextStart, resetMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Generating
generateFinalResultMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.LocalBarrier
getEmptyBarrier, getMemoryComputeKey
-
Constructor Details
-
SubgraphStep
-
-
Method Details
-
sideEffect
- Specified by:
sideEffectin classSideEffectBarrierStep<Edge>
-
getSideEffectKey
Description copied from interface:SideEffectCapableThe side-effect key of the step.- Specified by:
getSideEffectKeyin interfaceSideEffectCapable- Returns:
- the side-effect key
-
toString
- Overrides:
toStringin classAbstractStep<Edge,Edge>
-
getRequirements
Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
getRequirementsin interfaceStep<Edge,Edge> - Returns:
- the set of requirements
-
clone
Description copied from interface:StepCloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step whenStep.reset()is called. Moreover, the previous and next steps should be set toEmptyStep. -
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<Edge,Edge>
-