public class EmptyTraversal<S,E> extends Object implements Traversal.Admin<S,E>
Traversal.Admin<S,E>, Traversal.Exceptions| Modifier | Constructor and Description | 
|---|---|
| protected  | EmptyTraversal() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addStart(Traverser<S> start)Add a single  Traverserobject to the head of the traversal. | 
| void | addStarts(Iterator<Traverser<S>> starts)Add an iterator of  Traverserobjects to the head/start of the traversal. | 
| <S2,E2> Traversal.Admin<S2,E2> | addStep(int index,
       Step<?,?> step)Add a  Stepto an arbitrary point in the traversal. | 
| <E2> Traversal.Admin<S,E2> | addStep(Step<?,E2> step)Add a  Stepto the end of the traversal. | 
| void | addTraverserRequirement(TraverserRequirement traverserRequirement)Add a  TraverserRequirementto this traversal and respective nested sub-traversals. | 
| void | applyStrategies()Apply the registered  TraversalStrategiesto the traversal. | 
| Traversal.Admin<S,E> | asAdmin()Get access to administrative methods of the traversal via its accompanying  Traversal.Admin. | 
| EmptyTraversal<S,E> | clone()Cloning is used to duplicate the traversal typically in OLAP environments. | 
| boolean | equals(Object object) | 
| TraversalEngine | getEngine()Get the  TraversalEnginethat will be used to execute this traversal. | 
| Optional<Graph> | getGraph() | 
| TraversalParent | getParent()Get the  TraversalParentStepthat is the parent of this traversal. | 
| TraversalSideEffects | getSideEffects()Get the  TraversalSideEffectsassociated with the traversal. | 
| List<Step> | getSteps()Get the  Stepinstances associated with this traversal. | 
| TraversalStrategies | getStrategies()Get the  TraversalStrategiesassociated with this traversal. | 
| TraverserGenerator | getTraverserGenerator()Get the  TraverserGeneratorassociated with this traversal. | 
| Set<TraverserRequirement> | getTraverserRequirements()Get the set of all  TraverserRequirements for this traversal. | 
| int | hashCode() | 
| boolean | hasNext() | 
| static <A,B> EmptyTraversal<A,B> | instance() | 
| boolean | isLocked()When the traversal has had its  TraversalStrategiesapplied to it, it is locked. | 
| E | next() | 
| <S2,E2> Traversal.Admin<S2,E2> | removeStep(int index)Remove a  Stepfrom the traversal. | 
| void | setEngine(TraversalEngine engine)Set the  TraversalEngineto be used for executing this traversal. | 
| void | setGraph(Graph graph) | 
| void | setParent(TraversalParent step)Set the  TraversalParentStepthat is the parent of this traversal. | 
| void | setSideEffects(TraversalSideEffects sideEffects)Set the  TraversalSideEffectsof this traversal. | 
| void | setStrategies(TraversalStrategies traversalStrategies)Set the  TraversalStrategiesto be used by this traversal at evaluation time. | 
finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getEndStep, getStartStep, removeStep, resetpublic static <A,B> EmptyTraversal<A,B> instance()
public Traversal.Admin<S,E> asAdmin()
TraversalTraversal.Admin.public TraversalSideEffects getSideEffects()
Traversal.AdminTraversalSideEffects associated with the traversal.getSideEffects in interface Traversal.Admin<S,E>public void addTraverserRequirement(TraverserRequirement traverserRequirement)
Traversal.AdminTraverserRequirement to this traversal and respective nested sub-traversals.
 This is here to allow TraversalStrategy and TraversalSource instances to insert requirements.addTraverserRequirement in interface Traversal.Admin<S,E>traverserRequirement - the traverser requirement to addpublic void applyStrategies()
Traversal.AdminTraversalStrategies to the traversal.
 Once the strategies are applied, the traversal is "locked" and can no longer have steps added to it.
 The order of operations for strategy applications should be: globally id steps, apply strategies to root traversal, then to nested traversals.applyStrategies in interface Traversal.Admin<S,E>public TraversalEngine getEngine()
Traversal.AdminTraversalEngine that will be used to execute this traversal.getEngine in interface Traversal.Admin<S,E>public void setEngine(TraversalEngine engine)
Traversal.AdminTraversalEngine to be used for executing this traversal.setEngine in interface Traversal.Admin<S,E>engine - the engine to execute the traversal with.public void addStarts(Iterator<Traverser<S>> starts)
Traversal.AdminTraverser objects to the head/start of the traversal.
 Users should typically not need to call this method. For dynamic inject of data, they should use InjectStep.addStarts in interface Traversal.Admin<S,E>starts - an iterators of traverserspublic void addStart(Traverser<S> start)
Traversal.AdminTraverser object to the head of the traversal.
 Users should typically not need to call this method. For dynamic inject of data, they should use InjectStep.addStart in interface Traversal.Admin<S,E>start - a traverser to add to the traversalpublic <E2> Traversal.Admin<S,E2> addStep(Step<?,E2> step)
Traversal.AdminStep to the end of the traversal. This method should link the step to its next and previous step accordingly.addStep in interface Traversal.Admin<S,E>E2 - the output of the stepstep - the step to addpublic List<Step> getSteps()
Traversal.AdminStep instances associated with this traversal.
 The steps are ordered according to their linked list structure as defined by Step.getPreviousStep() and Step.getNextStep().getSteps in interface Traversal.Admin<S,E>public EmptyTraversal<S,E> clone()
Traversal.Adminpublic boolean isLocked()
Traversal.AdminTraversalStrategies applied to it, it is locked.isLocked in interface Traversal.Admin<S,E>public TraverserGenerator getTraverserGenerator()
Traversal.AdminTraverserGenerator associated with this traversal.
 The traversal generator creates Traverser instances that are respective of the traversal's TraverserRequirement.getTraverserGenerator in interface Traversal.Admin<S,E>public void setSideEffects(TraversalSideEffects sideEffects)
Traversal.AdminTraversalSideEffects of this traversal.setSideEffects in interface Traversal.Admin<S,E>sideEffects - the sideEffects to set for this traversal.public TraversalStrategies getStrategies()
Traversal.AdminTraversalStrategies associated with this traversal.getStrategies in interface Traversal.Admin<S,E>public void setParent(TraversalParent step)
Traversal.AdminTraversalParent Step that is the parent of this traversal.
 Traversals can be nested and this is the means by which the traversal tree is connected.setParent in interface Traversal.Admin<S,E>step - the traversal holder parent steppublic TraversalParent getParent()
Traversal.AdminTraversalParent Step that is the parent of this traversal.
 Traversals can be nested and this is the means by which the traversal tree is walked.getParent in interface Traversal.Admin<S,E>public void setStrategies(TraversalStrategies traversalStrategies)
Traversal.AdminTraversalStrategies to be used by this traversal at evaluation time.setStrategies in interface Traversal.Admin<S,E>traversalStrategies - the strategies to use on this traversalpublic <S2,E2> Traversal.Admin<S2,E2> addStep(int index, Step<?,?> step) throws IllegalStateException
Traversal.AdminStep to an arbitrary point in the traversal.addStep in interface Traversal.Admin<S,E>S2 - the new start type of the traversal (if the added step was a start step)E2 - the new end type of the traversal (if the added step was an end step)index - the location in the traversal to insert the stepstep - the step to addIllegalStateException - if the TraversalStrategies have already been appliedpublic <S2,E2> Traversal.Admin<S2,E2> removeStep(int index) throws IllegalStateException
Traversal.AdminStep from the traversal.removeStep in interface Traversal.Admin<S,E>S2 - the new start type of the traversal (if the removed step was a start step)E2 - the new end type of the traversal (if the removed step was an end step)index - the location in the traversal of the step to be evictedIllegalStateException - if the TraversalStrategies have already been appliedpublic Set<TraverserRequirement> getTraverserRequirements()
Traversal.AdminTraverserRequirements for this traversal.getTraverserRequirements in interface Traversal.Admin<S,E>public void setGraph(Graph graph)
setGraph in interface Traversal.Admin<S,E>Copyright © 2013–2015 Apache Software Foundation. All rights reserved.