ElementTraversal

overflowdb.traversal.ElementTraversal
final class ElementTraversal[E <: Element](val traversal: Iterator[E]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Type members

Types

type Traversal[A] = Iterator[A]

Value members

Concrete methods

def has(key: PropertyKey[_]): Iterator[E]

Filter elements by existence of property (irrespective of value)

Filter elements by existence of property (irrespective of value)

Attributes

def has(name: String): Iterator[E]

Filter elements by existence of property (irrespective of value)

Filter elements by existence of property (irrespective of value)

Attributes

def has(keyValue: Property[_]): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def has[A](key: PropertyKey[A], value: A): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def has[A](propertyPredicate: PropertyPredicate[A]): Iterator[E]

Filter elements by property with given predicate.

Filter elements by property with given predicate.

Attributes

Example:

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].")))
def has(key: String, value: Any): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def hasLabel(value: String): Iterator[E]

alias for

alias for

label

Attributes

def hasLabel(values: String*): Iterator[E]

alias for

alias for

label

Attributes

def hasNot(key: PropertyKey[_]): Iterator[E]

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

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

Attributes

def hasNot(name: String): Iterator[E]

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

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

Attributes

def hasNot(keyValue: Property[_]): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def hasNot[A](key: PropertyKey[A], value: A): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def hasNot(key: String, value: Any): Iterator[E]

Filter elements by property value

Filter elements by property value

Attributes

def hasNot[A](propertyPredicate: PropertyPredicate[A]): Iterator[E]

Filter elements by property with given predicate.

Filter elements by property with given predicate.

Attributes

Example:

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].")))
def label: Iterator[String]

traverse to the element label

traverse to the element label

Attributes

def label(value: String): Iterator[E]

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

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

Attributes

def label(values: String*): Iterator[E]

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

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

Attributes

def labelNot(value: String): Iterator[E]

filter by the element label (inverse)

filter by the element label (inverse)

Attributes

def labelNot(value1: String, valueN: String*): Iterator[E]

filter by the element labels (inverse)

filter by the element labels (inverse)

Attributes

def propertiesMap: Iterator[Map[String, Object]]
def property[A](key: PropertyKey[A]): Iterator[A]
def property[A](key: String): Iterator[A]
def propertyOption[A](key: PropertyKey[A]): Iterator[Option[A]]
def propertyOption[A](key: String): Iterator[Option[A]]

Concrete fields

val traversal: Iterator[E]