t

lightdb.traverse

GraphTraversal

trait GraphTraversal extends AnyRef

Primary entry point for graph traversals

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

Type Members

  1. case class StepFunctionTraversal[N <: Document[N]](startIds: Set[Id[N]], step: (Id[N]) => Task[Set[Id[N]]], maxDepth: Int) extends Product with Serializable

    A traversal that uses a step function to find neighbors This provides compatibility with legacy code that used BFSEngine.withStepFunction

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def createEdgeStepFunction[E <: EdgeDocument[E, N, N], N <: Document[N], M <: DocumentModel[E]](tx: PrefixScanningTransaction[E, M]): (Id[N]) => Task[Set[Id[N]]]

    Create a type-safe step function from an edge type This provides a type-safe way to create step functions for tests

    Create a type-safe step function from an edge type This provides a type-safe way to create step functions for tests

    tx

    The transaction to use

    returns

    A type-safe step function

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def from[D <: Document[D]](ids: Set[Id[D]]): DocumentTraversalBuilder[D]

    Start a traversal from a set of document IDs

  10. def from[D <: Document[D]](id: Id[D]): DocumentTraversalBuilder[D]

    Start a traversal from a single document ID

  11. def fromStream[D <: Document[D]](idStream: Stream[Id[D]]): DocumentTraversalBuilder[D]

    Start a traversal from a stream of document IDs

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. def withStepFunction[N <: Document[N]](startIds: Set[Id[N]], step: (Id[N]) => Task[Set[Id[N]]], maxDepth: Int = Int.MaxValue): StepFunctionTraversal[N]

    Create a traversal using a step function, for compatibility with legacy code

    Create a traversal using a step function, for compatibility with legacy code

    startIds

    The set of starting node IDs

    step

    The step function that returns neighbors for a node

    maxDepth

    The maximum traversal depth

    returns

    A StepFunctionTraversal instance

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped