public final class DedupStep<S> extends FilterStep<S> implements Reversible, Reducing, FunctionHolder<S,java.lang.Object>
id, label, nextEnd, nextStep, previousStep, PROFILING_ENABLED, starts, traversal, traverserStepIdSetByChild| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(java.util.function.Function<S,java.lang.Object> function) |
DedupStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
java.util.List<java.util.function.Function<S,java.lang.Object>> |
getFunctions() |
org.javatuples.Pair<java.util.function.Supplier<java.util.Set>,java.util.function.BiFunction<java.util.Set,Traverser<S>,java.util.Set>> |
getReducer() |
java.util.Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
boolean |
hasUniqueFunction() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
java.lang.String |
toString() |
processNextStart, setPredicateaddStart, addStarts, getId, getLabel, getNextStep, getPreviousStep, getTraversal, hasNext, next, setId, setLabel, setNextStep, setPreviousStep, setTraversalequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreversepublic DedupStep(Traversal traversal)
public boolean hasUniqueFunction()
public void addFunction(java.util.function.Function<S,java.lang.Object> function)
addFunction in interface FunctionHolder<S,java.lang.Object>public java.util.List<java.util.function.Function<S,java.lang.Object>> getFunctions()
getFunctions in interface FunctionHolder<S,java.lang.Object>public org.javatuples.Pair<java.util.function.Supplier<java.util.Set>,java.util.function.BiFunction<java.util.Set,Traverser<S>,java.util.Set>> getReducer()
getReducer in interface Reducingpublic DedupStep<S> clone() throws java.lang.CloneNotSupportedException
StepEmptyStep.public void reset()
Steppublic java.lang.String toString()
toString in class AbstractStep<S,S>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>Copyright © 2013-2015 TinkerPop. All Rights Reserved.