Packages

c

lightdb

IndexedLinks

case class IndexedLinks[V, D <: Document[D]](name: String, createV: (D) => V, createKey: (V) => String, collection: AbstractCollection[D], maxLinks: MaxLinks = MaxLinks.OverflowWarn()) extends Product with Serializable

Creates a key/value stored object with a list of links. This can be incredibly efficient for small lists, but much slower for larger sets of data and a standard index would be preferable.

name

the name of the index

createV

creates the value from the document

createKey

creates a unique identifier from the value

collection

the collection to associate this with

maxLinks

determines how to handle maximum number of links

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndexedLinks
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IndexedLinks(name: String, createV: (D) => V, createKey: (V) => String, collection: AbstractCollection[D], maxLinks: MaxLinks = MaxLinks.OverflowWarn())

    name

    the name of the index

    createV

    creates the value from the document

    createKey

    creates a unique identifier from the value

    collection

    the collection to associate this with

    maxLinks

    determines how to handle maximum number of links

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. def add(doc: D): IO[Unit]
    Attributes
    protected[lightdb]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clear(): IO[Unit]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. val collection: AbstractCollection[D]
  9. val createKey: (V) => String
  10. val createV: (D) => V
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def link(value: V): IO[Option[IndexedLink[D]]]
    Attributes
    protected[lightdb]
  15. val maxLinks: MaxLinks
  16. val name: String
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. def query(value: V): Stream[IO, D]
  22. def queryIds(value: V): Stream[IO, Id[D]]
  23. def remove(doc: D): IO[Unit]
    Attributes
    protected[lightdb]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped