Class ProfileStep<S>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
org.apache.tinkerpop.gremlin.process.traversal.step.util.ProfileStep<S>
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<S>>,Step<S,,S> MemoryComputing<MutableMetrics>
public final class ProfileStep<S>
extends AbstractStep<S,S>
implements MemoryComputing<MutableMetrics>
- Author:
- Bob Briody (http://bobbriody.com)
- See Also:
-
Nested Class Summary
Nested Classes -
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.TheMemoryComputeKeythat will be used by this step.ReturnsOptional.empty()if traversal is not iterated or if not locked after strategy application.booleanhasNext()next()protected Traverser.Admin<S>voidstart()Starts the metrics timer.voidstop()Stops the metrics timer.Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasStarts, isTraverserStepIdAndLabelsSetByChild, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements
-
Constructor Details
-
ProfileStep
-
-
Method Details
-
getMetrics
ReturnsOptional.empty()if traversal is not iterated or if not locked after strategy application. -
next
-
hasNext
public boolean hasNext() -
processNextStart
- Specified by:
processNextStartin classAbstractStep<S,S> - Throws:
NoSuchElementException
-
getMemoryComputeKey
Description copied from interface:MemoryComputingTheMemoryComputeKeythat will be used by this step.- Specified by:
getMemoryComputeKeyin interfaceMemoryComputing<S>- Returns:
- the MemoryComputeKey to use
-
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. -
start
public void start()Starts the metrics timer. -
stop
public void stop()Stops the metrics timer.
-