Class SideEffectCapStep<S,E>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.util.SupplyingBarrierStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectCapStep<S,E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<E>>,Step<S,,E> Barrier<Boolean>,MemoryComputing<Boolean>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild -
Constructor Summary
ConstructorsConstructorDescriptionSideEffectCapStep(Traversal.Admin traversal, String sideEffectKey, String... sideEffectKeys) -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.If a barrier is unproductive then provide an empty object suitable to the implementation which can be used to represent that state.Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.inthashCode()protected Esupply()toString()Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.SupplyingBarrierStep
addBarrier, addStart, addStarts, done, getMemoryComputeKey, hasNextBarrier, nextBarrier, processAllStarts, processNextStart, resetMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, 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 java.util.Iterator
forEachRemaining, remove
-
Field Details
-
sideEffectCapableSteps
-
-
Constructor Details
-
SideEffectCapStep
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractStep<S,E>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<S,E>
-
getSideEffectKeys
-
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.- Returns:
- the set of requirements
-
getEmptyBarrier
Description copied from interface:BarrierIf a barrier is unproductive then provide an empty object suitable to the implementation which can be used to represent that state. This is important for cases likeby(out().order().fold())where theorder()might filter but thefold()means the traversal is productive. -
supply
- Specified by:
supplyin classSupplyingBarrierStep<S,E>
-
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.
-