Object

org.opencypher.gremlin.translation.ir

TraversalHelper

Related Doc: package ir

Permalink

object TraversalHelper

Gremlin IR manipulation utilities

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TraversalHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait SplitMode extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object AfterStep extends SplitMode with Product with Serializable

    Permalink
  5. object BeforeStep extends SplitMode with Product with Serializable

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def countInTraversals[R](extractor: PartialFunction[Seq[GremlinStep], R])(steps: Seq[GremlinStep]): Map[R, Int]

    Permalink

    Count occurrences in top-level and all nested traversals starting from the bottom and going up.

    Count occurrences in top-level and all nested traversals starting from the bottom and going up.

    extractor

    matching and mapping function

    steps

    top-level traversal

    returns

    map with number of occurrences of extractor result

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def extract[R](extractor: PartialFunction[Seq[GremlinStep], R])(steps: Seq[GremlinStep]): Seq[R]

    Permalink

    Finds matching parts of an IR sequence and maps occurrences.

    Finds matching parts of an IR sequence and maps occurrences.

    R

    mapping result

    extractor

    matching and mapping function

    steps

    IR sequence

    returns

    list of extracted values

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def foldTraversals[R](z: R)(op: (R, Seq[GremlinStep]) ⇒ R)(steps: Seq[GremlinStep]): R

    Permalink

    Folds top-level and all nested traversals starting from the top and going down.

    Folds top-level and all nested traversals starting from the top and going down.

    R

    folding result type

    z

    start value

    op

    folding operator

    steps

    top-level traversal

    returns

    folding result

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def mapTraversals(f: (Seq[GremlinStep]) ⇒ Seq[GremlinStep])(steps: Seq[GremlinStep]): Seq[GremlinStep]

    Permalink

    Maps top-level and all nested traversals starting from the bottom and going up.

    Maps top-level and all nested traversals starting from the bottom and going up.

    f

    mapping function

    steps

    top-level traversal

    returns

    mapping result

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def replace(replacer: PartialFunction[Seq[GremlinStep], Seq[GremlinStep]])(steps: Seq[GremlinStep]): Seq[GremlinStep]

    Permalink

    Finds matching parts of an IR sequence and replaces them.

    Finds matching parts of an IR sequence and replaces them.

    replacer

    matching and replacing function

    steps

    IR sequence

    returns

    rewritten IR sequence

  22. def split(splitMode: SplitMode, splitter: (GremlinStep) ⇒ Boolean)(steps: Seq[GremlinStep]): Seq[Seq[GremlinStep]]

    Permalink

    Finds matching steps in the IR sequence and splits the sequence in segments, with each matching step marking the end of a segment.

    Finds matching steps in the IR sequence and splits the sequence in segments, with each matching step marking the end of a segment.

    splitter

    matching function

    steps

    IR sequence

    returns

    IR sequence segments

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped