Class MergeVertexStep<S>

    • Method Detail

      • validateMapInput

        public static void validateMapInput​(Map map,
                                            boolean ignoreTokens)
      • clone

        public MergeVertexStep<S> clone()
        Description copied from interface: Step
        Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step when Step.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.
        Specified by:
        clone in interface Step<S,​Vertex>
        Overrides:
        clone in class MergeStep<S,​Vertex,​Map>
        Returns:
        The cloned step
      • searchVertices

        public static CloseableIterator<Vertex> searchVertices​(Graph graph,
                                                               Map search)
        Translate the Map into a g.V() traversal against the supplied graph. Graph providers will presumably optimize this traversal to use whatever indices are present and appropriate for efficiency. Callers are responsible for closing this iterator when finished.
      • searchVertices

        protected CloseableIterator<Vertex> searchVertices​(Map search)
        Translate the Map into search criteria. Default implementation is to translate the Map into a g.V() traversal. Graph providers will presumably optimize this traversal to use whatever indices are present and appropriate for efficiency. Callers are responsible for closing this iterator when finished.
      • onCreateMap

        protected Map onCreateMap​(Traverser.Admin<S> traverser,
                                  Map mergeMap)
        Fuse the mergeMap with any additional key/values from the onCreateTraversal. No overrides allowed.