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>
public final class SideEffectCapStep<S,E> extends SupplyingBarrierStep<S,E>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,SideEffectCapable<Object,E>>sideEffectCapableSteps-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
-
-
Constructor Summary
Constructors Constructor Description SideEffectCapStep(Traversal.Admin traversal, String sideEffectKey, String... sideEffectKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SideEffectCapStep<S,E>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.BooleangetEmptyBarrier()If a barrier is unproductive then provide an empty object suitable to the implementation which can be used to represent that state.Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.List<String>getSideEffectKeys()inthashCode()protected Esupply()StringtoString()-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.SupplyingBarrierStep
addBarrier, addStart, addStarts, done, getMemoryComputeKey, hasNextBarrier, nextBarrier, processAllStarts, processNextStart, reset
-
Methods 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, setTraversal
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
sideEffectCapableSteps
public transient Map<String,SideEffectCapable<Object,E>> sideEffectCapableSteps
-
-
Constructor Detail
-
SideEffectCapStep
public SideEffectCapStep(Traversal.Admin traversal, String sideEffectKey, String... sideEffectKeys)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAbstractStep<S,E>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractStep<S,E>
-
getRequirements
public Set<TraverserRequirement> 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
public Boolean 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
protected E supply()
- Specified by:
supplyin classSupplyingBarrierStep<S,E>
-
clone
public SideEffectCapStep<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.
-
-