Builder

overflowdb.traversal.RepeatBehaviour$.Builder
class Builder[A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def bfs: Builder[A]

configure search algorithm to go "breadth first", rather than the default "depth first"

configure search algorithm to go "breadth first", rather than the default "depth first"

Attributes

configure search algorithm to go "breadth first", rather than the default "depth first"

configure search algorithm to go "breadth first", rather than the default "depth first"

Attributes

def dedup: Builder[A]

Keep a 'visited' list of elements to ensure we are not going in cycles.

Keep a 'visited' list of elements to ensure we are not going in cycles.

Attributes

def emit: Builder[A]

Emit all intermediate elements (along the way).

Emit all intermediate elements (along the way).

Attributes

def emit(condition: Iterator[A] => Iterator[_]): Builder[A]

Emit intermediate elements (along the way), if they meet the given condition. Note that this does not apply a filter on the final elements of the traversal.

Emit intermediate elements (along the way), if they meet the given condition. Note that this does not apply a filter on the final elements of the traversal.

Attributes

Emit intermediate elements (along the way), apart from the first element

Emit intermediate elements (along the way), apart from the first element

Attributes

def maxDepth(value: Int): Builder[A]

Maximum depth to go down in the repeat traversal. Note that there may be other conditions like until|whilst etc.

Maximum depth to go down in the repeat traversal. Note that there may be other conditions like until|whilst etc.

Attributes

def until(condition: Iterator[A] => Iterator[_]): Builder[A]
def whilst(condition: Iterator[A] => Iterator[_]): Builder[A]

Stop traversing when given condition-traversal has no result. The condition-traversal is already evaluated at the first iteration, for classic while/repeat behaviour.

Stop traversing when given condition-traversal has no result. The condition-traversal is already evaluated at the first iteration, for classic while/repeat behaviour.

n.b. the only reason not to call this while is to avoid using scala keywords, which would need to be quoted.

Attributes

Deprecated methods

def times(value: Int): Builder[A]

Maximum depth to go down in the repeat traversal. Note that there may be other conditions like until|whilst etc.

Maximum depth to go down in the repeat traversal. Note that there may be other conditions like until|whilst etc.

Attributes

Deprecated
true