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:
-
Field Summary
FieldsFields 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 TypeMethodDescriptionPost-process the side-effect and return the post-processed side-effect.The side-effect key of the step.booleanhasNext()next()voidThe step will be executing on aGraphComputer.protected voidsideEffect(Traverser.Admin<S> traverser) Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.SideEffectStep
processNextStartMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, clone, 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 org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMasterMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements
-
Field Details
-
DEFAULT_METRICS_KEY
-
-
Constructor Details
-
ProfileSideEffectStep
-
-
Method Details
-
sideEffect
- Specified by:
sideEffectin classSideEffectStep<S>
-
getSideEffectKey
Description copied from interface:SideEffectCapableThe side-effect key of the step.- Specified by:
getSideEffectKeyin interfaceSideEffectCapable<DefaultTraversalMetrics,DefaultTraversalMetrics> - Returns:
- the side-effect key
-
next
-
hasNext
public boolean hasNext() -
generateFinalResult
Description copied from interface:GeneratingPost-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:
generateFinalResultin interfaceGenerating<DefaultTraversalMetrics,DefaultTraversalMetrics> - Parameters:
tm- the pre-processed side-effect.- Returns:
- the post-processed side-effect.
-
onGraphComputer
public void onGraphComputer()Description copied from interface:GraphComputingThe step will be executing on aGraphComputer.- Specified by:
onGraphComputerin interfaceGraphComputing
-