Class ProfileSideEffectStep<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStep<S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.ProfileSideEffectStep<S>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterator<Traverser.Admin<S>>
,Step<S,S>
,Generating<DefaultTraversalMetrics,DefaultTraversalMetrics>
,GraphComputing
,SideEffectCapable<DefaultTraversalMetrics,DefaultTraversalMetrics>
public final class ProfileSideEffectStep<S> extends SideEffectStep<S> implements SideEffectCapable<DefaultTraversalMetrics,DefaultTraversalMetrics>, GraphComputing
- Author:
- Bob Briody (http://bobbriody.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_METRICS_KEY
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
-
-
Constructor Summary
Constructors Constructor Description ProfileSideEffectStep(Traversal.Admin traversal, String sideEffectKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultTraversalMetrics
generateFinalResult(DefaultTraversalMetrics tm)
Post-process the side-effect and return the post-processed side-effect.String
getSideEffectKey()
The side-effect key of the step.boolean
hasNext()
Traverser.Admin<S>
next()
void
onGraphComputer()
The step will be executing on aGraphComputer
.protected void
sideEffect(Traverser.Admin<S> traverser)
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStep
processNextStart
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasStarts, isTraverserStepIdAndLabelsSetByChild, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMaster
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements
-
-
-
-
Field Detail
-
DEFAULT_METRICS_KEY
public static final String DEFAULT_METRICS_KEY
-
-
Constructor Detail
-
ProfileSideEffectStep
public ProfileSideEffectStep(Traversal.Admin traversal, String sideEffectKey)
-
-
Method Detail
-
sideEffect
protected void sideEffect(Traverser.Admin<S> traverser)
- Specified by:
sideEffect
in classSideEffectStep<S>
-
getSideEffectKey
public String getSideEffectKey()
Description copied from interface:SideEffectCapable
The side-effect key of the step.- Specified by:
getSideEffectKey
in interfaceSideEffectCapable<DefaultTraversalMetrics,DefaultTraversalMetrics>
- Returns:
- the side-effect key
-
next
public Traverser.Admin<S> next()
-
hasNext
public boolean hasNext()
-
generateFinalResult
public DefaultTraversalMetrics generateFinalResult(DefaultTraversalMetrics tm)
Description copied from interface:Generating
Post-process the side-effect and return the post-processed side-effect. The default implementation is simply the identity function and returns the argument.- Specified by:
generateFinalResult
in interfaceGenerating<DefaultTraversalMetrics,DefaultTraversalMetrics>
- Parameters:
tm
- the pre-processed side-effect.- Returns:
- the post-processed side-effect.
-
onGraphComputer
public void onGraphComputer()
Description copied from interface:GraphComputing
The step will be executing on aGraphComputer
.- Specified by:
onGraphComputer
in interfaceGraphComputing
-
-