Class DateAddStep<S>
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,OffsetDateTime>
org.apache.tinkerpop.gremlin.process.traversal.step.map.DateAddStep<S>
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<OffsetDateTime>>,Step<S,OffsetDateTime>
Reference implementation for date concatenation step.
- Author:
- Valentyn Kahamlyk
- See Also:
-
Field Summary
Fields 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.intgetValue()inthashCode()protected OffsetDateTimemap(Traverser.Admin<S> traverser) voidsetTraversal(Traversal.Admin<?, ?> parentTraversal) Set theTraversalthat this step is contained within.toString()Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep
processNextStartMethods 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, reset, setId, setNextStep, setPreviousStepMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
DateAddStep
-
-
Method Details
-
map
- Specified by:
mapin classScalarMapStep<S,OffsetDateTime>
-
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
-
setTraversal
Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
setTraversalin interfaceStep<S,OffsetDateTime> - Overrides:
setTraversalin classAbstractStep<S,OffsetDateTime> - Parameters:
parentTraversal- the new traversal for this step
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<S,OffsetDateTime>
-
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 interfaceStep<S,OffsetDateTime> - Overrides:
clonein classAbstractStep<S,OffsetDateTime> - Returns:
- The cloned step
-
toString
- Overrides:
toStringin classAbstractStep<S,OffsetDateTime>
-
getDateToken
-
getValue
public int getValue()
-