Class OrderLocalStep<S,C extends Comparable>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep<S,E>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep<S,S>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.OrderLocalStep<S,C>
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<S>>,- Step<S,S>,- ByModulating,- ComparatorHolder<S,C>,- Seedable,- TraversalParent
 
 public final class OrderLocalStep<S,C extends Comparable> extends ScalarMapStep<S,S> implements ComparatorHolder<S,C>, ByModulating, TraversalParent, Seedable - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor Description OrderLocalStep(Traversal.Admin traversal)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComparator(Traversal.Admin<S,C> traversal, Comparator<C> comparator)Add aTraversal-basedComparatorto the holder.OrderLocalStep<S,C>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.List<org.javatuples.Pair<Traversal.Admin<S,C>,Comparator<C>>>getComparators()Get the comparators associated with this holder.List<Traversal.Admin<S,C>>getLocalChildren()Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.inthashCode()protected Smap(Traverser.Admin<S> traverser)voidmodulateBy(Traversal.Admin<?,?> traversal)voidmodulateBy(Traversal.Admin<?,?> traversal, Comparator comparator)voidreplaceLocalChild(Traversal.Admin<?,?> oldTraversal, Traversal.Admin<?,?> newTraversal)voidresetSeed(long seed)voidsetTraversal(Traversal.Admin<?,?> parentTraversal)Set theTraversalthat this step is contained within.StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStepprocessNextStart
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.ByModulatingmodulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParentaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
 
- 
 
- 
- 
- 
Constructor Detail- 
OrderLocalSteppublic OrderLocalStep(Traversal.Admin traversal) 
 
- 
 - 
Method Detail- 
mapprotected S map(Traverser.Admin<S> traverser) - Specified by:
- mapin class- ScalarMapStep<S,S>
 
 - 
addComparatorpublic void addComparator(Traversal.Admin<S,C> traversal, Comparator<C> comparator) Description copied from interface:ComparatorHolder- Specified by:
- addComparatorin interface- ComparatorHolder<S,C extends Comparable>
- Parameters:
- traversal- the traversal to pre-process the object by.
- comparator- the comparator to compare the result of the object after traversal processing
 
 - 
modulateBypublic void modulateBy(Traversal.Admin<?,?> traversal) - Specified by:
- modulateByin interface- ByModulating
 
 - 
modulateBypublic void modulateBy(Traversal.Admin<?,?> traversal, Comparator comparator) - Specified by:
- modulateByin interface- ByModulating
 
 - 
replaceLocalChildpublic void replaceLocalChild(Traversal.Admin<?,?> oldTraversal, Traversal.Admin<?,?> newTraversal) - Specified by:
- replaceLocalChildin interface- TraversalParent
 
 - 
getComparatorspublic List<org.javatuples.Pair<Traversal.Admin<S,C>,Comparator<C>>> getComparators() Description copied from interface:ComparatorHolderGet the comparators associated with this holder. The comparators are ordered according to their oder of operation.- Specified by:
- getComparatorsin interface- ComparatorHolder<S,C extends Comparable>
- Returns:
- a list of Traversal/Comparator-pairs
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractStep<S,S>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractStep<S,S>
 
 - 
getRequirementspublic 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.- Specified by:
- getRequirementsin interface- Step<S,C extends Comparable>
- Returns:
- the set of requirements
 
 - 
getLocalChildrenpublic List<Traversal.Admin<S,C>> getLocalChildren() - Specified by:
- getLocalChildrenin interface- TraversalParent
 
 - 
clonepublic OrderLocalStep<S,C> 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.- Specified by:
- clonein interface- Step<S,C extends Comparable>
- Overrides:
- clonein class- AbstractStep<S,S>
- Returns:
- The cloned step
 
 - 
setTraversalpublic void setTraversal(Traversal.Admin<?,?> parentTraversal) Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
- setTraversalin interface- Step<S,C extends Comparable>
- Overrides:
- setTraversalin class- AbstractStep<S,S>
- Parameters:
- parentTraversal- the new traversal for this step
 
 
- 
 
-