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:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProfileStep.ProfileBiOperator
 - 
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 ProfileStep(Traversal.Admin traversal)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileStep<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.MemoryComputeKey<MutableMetrics>getMemoryComputeKey()TheMemoryComputeKeythat will be used by this step.Optional<MutableMetrics>getMetrics()ReturnsOptional.empty()if traversal is not iterated or if not locked after strategy application.booleanhasNext()Traverser.Admin<S>next()protected Traverser.Admin<S>processNextStart()voidstart()Starts the metrics timer.voidstop()Stops the metrics timer.- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasStarts, isTraverserStepIdAndLabelsSetByChild, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Stepequals, getRequirements
 
- 
 
- 
- 
- 
Constructor Detail- 
ProfileSteppublic ProfileStep(Traversal.Admin traversal) 
 
- 
 - 
Method Detail- 
getMetricspublic Optional<MutableMetrics> getMetrics() ReturnsOptional.empty()if traversal is not iterated or if not locked after strategy application.
 - 
nextpublic Traverser.Admin<S> next() 
 - 
hasNextpublic boolean hasNext() 
 - 
processNextStartprotected Traverser.Admin<S> processNextStart() throws NoSuchElementException - Specified by:
- processNextStartin class- AbstractStep<S,S>
- Throws:
- NoSuchElementException
 
 - 
getMemoryComputeKeypublic MemoryComputeKey<MutableMetrics> getMemoryComputeKey() Description copied from interface:MemoryComputingTheMemoryComputeKeythat will be used by this step.- Specified by:
- getMemoryComputeKeyin interface- MemoryComputing<S>
- Returns:
- the MemoryComputeKey to use
 
 - 
clonepublic ProfileStep<S> 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.
 - 
startpublic void start() Starts the metrics timer.
 - 
stoppublic void stop() Stops the metrics timer.
 
- 
 
-