public final class ProfileStep<S> extends AbstractStep<S,S> implements MemoryComputing<MutableMetrics>
Modifier and Type | Class and Description |
---|---|
static class |
ProfileStep.ProfileBiOperator |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
ProfileStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
ProfileStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
MemoryComputeKey<MutableMetrics> |
getMemoryComputeKey()
The
MemoryComputeKey that will be used by this step. |
Optional<MutableMetrics> |
getMetrics()
Returns
Optional.empty() if traversal is not iterated or if not locked after strategy application. |
boolean |
hasNext() |
Traverser.Admin<S> |
next() |
protected Traverser.Admin<S> |
processNextStart() |
void |
start()
Starts the metrics timer.
|
void |
stop()
Stops the metrics timer.
|
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasStarts, isTraverserStepIdAndLabelsSetByChild, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getRequirements
forEachRemaining, remove
public ProfileStep(Traversal.Admin traversal)
public Optional<MutableMetrics> getMetrics()
Optional.empty()
if traversal is not iterated or if not locked after strategy application.public Traverser.Admin<S> next()
next
in interface Iterator<Traverser.Admin<S>>
next
in class AbstractStep<S,S>
public boolean hasNext()
hasNext
in interface Iterator<Traverser.Admin<S>>
hasNext
in class AbstractStep<S,S>
protected Traverser.Admin<S> processNextStart() throws NoSuchElementException
processNextStart
in class AbstractStep<S,S>
NoSuchElementException
public MemoryComputeKey<MutableMetrics> getMemoryComputeKey()
MemoryComputing
MemoryComputeKey
that will be used by this step.getMemoryComputeKey
in interface MemoryComputing<MutableMetrics>
public ProfileStep<S> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.public void start()
public void stop()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.