case class EdgeTraversalBuilder[E <: EdgeDocument[E, F, T], F <: Document[F], T <: Document[T]](fromIds: Stream[Id[F]], tx: PrefixScanningTransaction[E, _], maxDepth: Int, edgeFilter: (E) => Boolean = (_: E) => true, strategy: TraversalStrategy = TraversalStrategy.BFS) extends Product with Serializable
Builder for edge traversals
- fromIds
The stream of document IDs to start the traversal from
- tx
A transaction that supports prefix scanning for the edge type
- maxDepth
The maximum traversal depth
- Alphabetic
- By Inheritance
- EdgeTraversalBuilder
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EdgeTraversalBuilder(fromIds: Stream[Id[F]], tx: PrefixScanningTransaction[E, _], maxDepth: Int, edgeFilter: (E) => Boolean = (_: E) => true, strategy: TraversalStrategy = TraversalStrategy.BFS)
- fromIds
The stream of document IDs to start the traversal from
- tx
A transaction that supports prefix scanning for the edge type
- maxDepth
The maximum traversal depth
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def documents(docTx: Transaction[T, _]): Stream[T]
Get the stream of target documents
Get the stream of target documents
- docTx
A transaction for retrieving target documents
- returns
A stream of target documents
- val edgeFilter: (E) => Boolean
- def edges: Stream[E]
Get the stream of edge documents
Get the stream of edge documents
- returns
A stream of edge documents
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filter(predicate: (E) => Boolean): EdgeTraversalBuilder[E, F, T]
Configure edge filtering
Configure edge filtering
- predicate
A predicate function to filter edges
- def findPaths(target: Id[T]): Stream[TraversalPath[E, F, T]]
Find all paths to a target node
Find all paths to a target node
- target
The ID of the target node
- returns
A stream of paths to the target node
- def findShortestPath(target: Id[T]): Stream[TraversalPath[E, F, T]]
Find the shortest path to a target node
Find the shortest path to a target node
- target
The ID of the target node
- returns
A stream containing the shortest path to the target node, if any
- def follow[E2 <: EdgeDocument[E2, T, T2], T2 <: Document[T2]](nextTx: PrefixScanningTransaction[E2, _]): EdgeTraversalBuilder[E2, T, T2]
Follow additional edges from the targets of the current traversal
Follow additional edges from the targets of the current traversal
- E2
The next edge document type
- T2
The next target document type
- nextTx
A transaction that supports prefix scanning for the next edge type
- returns
A builder for the next edge traversal
- val fromIds: Stream[Id[F]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxDepth: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val strategy: TraversalStrategy
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def targetIds(implicit ev: =:=[F, T]): Stream[Id[T]]
Get the stream of target document IDs
Get the stream of target document IDs
- returns
A stream of target document IDs
- val tx: PrefixScanningTransaction[E, _]
- def using(traversalStrategy: TraversalStrategy): EdgeTraversalBuilder[E, F, T]
Configure traversal strategy
Configure traversal strategy
- traversalStrategy
The traversal strategy to use
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withMaxDepth(depth: Int): EdgeTraversalBuilder[E, F, T]
Configure the maximum traversal depth
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)