Packages

t

lightdb.index

IndexSupport

trait IndexSupport[D <: Document[D]] extends Collection[D]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndexSupport
  2. Collection
  3. DocumentModel
  4. AbstractCollection
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Field[F] = IndexedField[F, D]
    Definition Classes
    DocumentModel

Abstract Value Members

  1. abstract def doSearch(query: Query[D], context: SearchContext[D], offset: Int, after: Option[PagedResults[D]]): IO[PagedResults[D]]
  2. abstract def index: Indexer[D]
  3. abstract def indexDoc(doc: D, fields: List[IndexedField[_, D]]): IO[Unit]
    Attributes
    protected
  4. implicit abstract val rw: RW[D]
    Definition Classes
    DocumentModel

Concrete 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 apply(id: Id[D]): IO[D]
    Definition Classes
    AbstractCollection
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val atomic: Boolean
    Definition Classes
    CollectionAbstractCollection
  7. val autoCommit: Boolean
    Definition Classes
    CollectionAbstractCollection
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. val collectionName: String
    Definition Classes
    CollectionAbstractCollection
  10. def commit(): IO[Unit]
    Definition Classes
    IndexSupportAbstractCollection
  11. val db: LightDB
    Attributes
    protected[lightdb]
    Definition Classes
    CollectionAbstractCollection
  12. def delete(id: Id[D])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Option[D]]
    Definition Classes
    AbstractCollection
  13. def dispose(): IO[Unit]
    Definition Classes
    AbstractCollection
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def get(id: Id[D]): IO[Option[D]]
    Definition Classes
    AbstractCollection
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. def idStream: Stream[IO, Id[D]]
    Definition Classes
    AbstractCollection
  20. def indexedLinks: List[IndexedLinks[_, D]]
    Definition Classes
    DocumentModel
  21. def indexedLinks[V](name: String, createKey: (V) => String, createV: (D) => V, maxLinks: MaxLinks = MaxLinks.OverflowWarn()): IndexedLinks[V, D]

    Creates a key/value stored object with a list of links.

    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.

    Definition Classes
    AbstractCollection
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def model: DocumentModel[D]
    Definition Classes
    CollectionAbstractCollection
  24. def modify(id: Id[D])(f: (Option[D]) => IO[Option[D]])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Option[D]]
    Definition Classes
    AbstractCollection
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. def postDelete(doc: D, collection: AbstractCollection[D]): IO[Unit]
    Definition Classes
    IndexSupportDocumentModel
  29. def postSet(doc: D, collection: AbstractCollection[D]): IO[Unit]

    Called after set

    Called after set

    Definition Classes
    IndexSupportDocumentModel
  30. def preDelete(id: Id[D], collection: AbstractCollection[D]): IO[Id[D]]
    Definition Classes
    DocumentModel
  31. def preSet(doc: D, collection: AbstractCollection[D]): IO[D]

    Called before preSetJson and before the data is set to the database

    Called before preSetJson and before the data is set to the database

    Definition Classes
    DocumentModel
  32. def preSetJson(json: Json, collection: AbstractCollection[D]): IO[Json]

    Called after preSet and before the data is set to the database

    Called after preSet and before the data is set to the database

    Definition Classes
    DocumentModel
  33. lazy val query: Query[D]
  34. def set(doc: D)(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[D]
    Definition Classes
    AbstractCollection
  35. def size: IO[Int]
    Definition Classes
    AbstractCollection
  36. lazy val store: Store
    Attributes
    protected
    Definition Classes
    AbstractCollection
  37. def stream: Stream[IO, D]
    Definition Classes
    AbstractCollection
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def truncate(): IO[Unit]
    Definition Classes
    AbstractCollection
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. def withLock[Return](id: Id[D])(f: (DocLock[D]) => IO[Return])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Return]
    Definition Classes
    AbstractCollection
  45. def withSearchContext[Return](f: (SearchContext[D]) => IO[Return]): IO[Return]

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 Collection[D]

Inherited from DocumentModel[D]

Inherited from AbstractCollection[D]

Inherited from AnyRef

Inherited from Any

Ungrouped