Interface GraphTraversal.Admin<S,E>

All Superinterfaces:
AutoCloseable, Cloneable, GraphTraversal<S,E>, Iterator<E>, Serializable, Traversal<S,E>, Traversal.Admin<S,E>
All Known Subinterfaces:
CredentialTraversal<S,E>, CredentialTraversalDsl<S,E>
All Known Implementing Classes:
DefaultCredentialTraversal, DefaultGraphTraversal
Enclosing interface:
GraphTraversal<S,E>

public static interface GraphTraversal.Admin<S,E> extends Traversal.Admin<S,E>, GraphTraversal<S,E>
Exposes administrative methods that are either internal to TinkerPop or for users with advanced needs. This separation helps keep the Gremlin API more concise. Any GraphTraversal can get an instance of its administrative form by way of GraphTraversal.asAdmin().
  • Method Details

    • addStep

      default <E2> GraphTraversal.Admin<S,E2> addStep(Step<?,E2> step)
      Description copied from interface: Traversal.Admin
      Add a Step to the end of the traversal. This method should link the step to its next and previous step accordingly.
      Specified by:
      addStep in interface Traversal.Admin<S,E>
      Type Parameters:
      E2 - the output of the step
      Parameters:
      step - the step to add
      Returns:
      the updated traversal
    • iterate

      default GraphTraversal<S,E> iterate()
      Description copied from interface: Traversal
      Iterate all the Traverser instances in the traversal. What is returned is the empty traversal. It is assumed that what is desired from the computation is are the sideEffects yielded by the traversal.
      Specified by:
      iterate in interface GraphTraversal<S,E>
      Specified by:
      iterate in interface Traversal<S,E>
      Returns:
      the fully drained traversal
    • clone

      Description copied from interface: Traversal.Admin
      Cloning is used to duplicate the traversal typically in OLAP environments.
      Specified by:
      clone in interface Traversal.Admin<S,E>
      Returns:
      The cloned traversal