public final class SampleStep<S> extends BarrierStep<S> implements Reversible, FunctionHolder<S,java.lang.Number>
id, label, nextEnd, nextStep, previousStep, PROFILING_ENABLED, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
SampleStep(Traversal traversal,
int amountToSample) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(java.util.function.Function<S,java.lang.Number> function) |
java.util.List<java.util.function.Function<S,java.lang.Number>> |
getFunctions() |
java.util.Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
java.lang.String |
toString() |
clone, processNextStart, reset, setConsumeraddStart, addStarts, getId, getLabel, getNextStep, getPreviousStep, getTraversal, hasNext, next, setId, setLabel, setNextStep, setPreviousStep, setTraversalequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreversepublic SampleStep(Traversal traversal, int amountToSample)
public void addFunction(java.util.function.Function<S,java.lang.Number> function)
addFunction in interface FunctionHolder<S,java.lang.Number>public java.lang.String toString()
toString in class AbstractStep<S,S>public java.util.List<java.util.function.Function<S,java.lang.Number>> getFunctions()
getFunctions in interface FunctionHolder<S,java.lang.Number>public java.util.Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to function properly.
The provided default implements returns an empty set.getRequirements in interface Step<S,S>getRequirements in class BarrierStep<S>Copyright © 2013-2015 TinkerPop. All Rights Reserved.