c

overflowdb.traversal

ElementTraversal

final class ElementTraversal[E <: Element] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElementTraversal
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ElementTraversal(traversal: Traversal[E])

Value Members

  1. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  2. def has(key: String, value: Any): Traversal[E]

    Filter elements by property value

  3. def has[A](propertyPredicate: PropertyPredicate[A]): Traversal[E]

    Filter elements by property with given predicate.

    Filter elements by property with given predicate.

    Example:
    1. from GenericGraphTraversalTest

      .has(Name.where(_.endsWith("1")))
      .has(Name.where(_.matches("[LR].")))
      .has(Name.where(P.eq("R1")))
      .has(Name.where(P.neq("R1")))
      .has(Name.where(P.within(Set("L1", "L2"))))
      .has(Name.where(P.within("L1", "L2", "L3")))
      .has(Name.where(P.matches("[LR].")))
  4. def has[A](key: PropertyKey[A], value: A): Traversal[E]

    Filter elements by property value

  5. def has(keyValue: Property[_]): Traversal[E]

    Filter elements by property value

  6. def has(name: String): Traversal[E]

    Filter elements by existence of property (irrespective of value)

  7. def has(key: PropertyKey[_]): Traversal[E]

    Filter elements by existence of property (irrespective of value)

  8. def hasLabel(values: String*): Traversal[E]

    alias for

    alias for

    label
  9. def hasLabel(value: String): Traversal[E]

    alias for

    alias for

    label
  10. def hasNot[A](propertyPredicate: PropertyPredicate[A]): Traversal[E]

    Filter elements by property with given predicate.

    Filter elements by property with given predicate.

    Example:
    1. from GenericGraphTraversalTest

      .hasNot(Name.where(_.endsWith("1")))
      .hasNot(Name.where(_.matches("[LR].")))
      .hasNot(Name.where(P.eq("R1")))
      .hasNot(Name.where(P.neq("R1")))
      .hasNot(Name.where(P.within(Set("L1", "L2"))))
      .hasNot(Name.where(P.within("L1", "L2", "L3")))
      .hasNot(Name.where(P.matches("[LR].")))
  11. def hasNot(key: String, value: Any): Traversal[E]

    Filter elements by property value

  12. def hasNot[A](key: PropertyKey[A], value: A): Traversal[E]

    Filter elements by property value

  13. def hasNot(keyValue: Property[_]): Traversal[E]

    Filter elements by property value

  14. def hasNot(name: String): Traversal[E]

    Filter elements by (non-)existence of property (irrespective of value)

  15. def hasNot(key: PropertyKey[_]): Traversal[E]

    Filter elements by (non-)existence of property (irrespective of value)

  16. def label(values: String*): Traversal[E]

    filter by the element labels Note: do not use as the first step in a traversal, e.g.

    filter by the element labels Note: do not use as the first step in a traversal, e.g. traversalSource.all.label(value). Use traversalSource.label instead, it is much faster TODO: make the above an automatic optimisation

  17. def label(value: String): Traversal[E]

    filter by the element label Note: do not use as the first step in a traversal, e.g.

    filter by the element label Note: do not use as the first step in a traversal, e.g. traversalSource.all.label(value). Use traversalSource.label instead, it is much faster TODO: make the above an automatic optimisation

  18. def label: Traversal[String]

    traverse to the element label

    traverse to the element label

    Annotations
    @Doc(short = "Traverse to the element label", long = help.this.Doc.<init>$default$2, example = help.this.Doc.<init>$default$3)
  19. def labelNot(value1: String, valueN: String*): Traversal[E]

    filter by the element labels (inverse)

  20. def labelNot(value: String): Traversal[E]

    filter by the element label (inverse)

  21. def propertiesMap: Traversal[Map[String, AnyRef]]
  22. def property[A](key: String): Traversal[A]
  23. def property[A](key: PropertyKey[A]): Traversal[A]
  24. def propertyOption[A](key: String): Traversal[Option[A]]
  25. def propertyOption[A](key: PropertyKey[A]): Traversal[Option[A]]
  26. val traversal: Traversal[E]