IndexSupport

lightdb.index.IndexSupport
trait IndexSupport[D <: Document[D]] extends Collection[D]

Attributes

Graph
Supertypes
class Collection[D]
trait DocumentModel[D]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Field[F] = IndexedField[F, D]

Attributes

Inherited from:
DocumentModel

Value members

Abstract methods

def doSearch(query: Query[D], context: SearchContext[D], offset: Int, after: Option[PagedResults[D]]): IO[PagedResults[D]]
def index: Indexer[D]
protected def indexDoc(doc: D, fields: List[IndexedField[_, D]]): IO[Unit]

Concrete methods

override def commit(): IO[Unit]

Attributes

Definition Classes
override def postDelete(doc: D, collection: AbstractCollection[D]): IO[Unit]

Attributes

Definition Classes
override def postSet(doc: D, collection: AbstractCollection[D]): IO[Unit]

Called after set

Called after set

Attributes

Definition Classes
def withSearchContext[Return](f: (SearchContext[D]) => IO[Return]): IO[Return]

Inherited methods

def apply(id: Id[D]): IO[D]

Attributes

Inherited from:
AbstractCollection
def delete(id: Id[D])(implicit existingLock: DocLock[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def dispose(): IO[Unit]

Attributes

Inherited from:
AbstractCollection
def get(id: Id[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def idStream: Stream[IO, Id[D]]

Attributes

Inherited from:
AbstractCollection
override def model: DocumentModel[D]

Attributes

Definition Classes
Inherited from:
Collection
def modify(id: Id[D])(f: (Option[D]) => IO[Option[D]])(implicit existingLock: DocLock[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def preDelete(id: Id[D], collection: AbstractCollection[D]): IO[Id[D]]

Attributes

Inherited from:
DocumentModel
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

Attributes

Inherited from:
DocumentModel
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

Attributes

Inherited from:
DocumentModel
def set(doc: D)(implicit existingLock: DocLock[D]): IO[D]

Attributes

Inherited from:
AbstractCollection
def size: IO[Int]

Attributes

Inherited from:
AbstractCollection
def stream: Stream[IO, D]

Attributes

Inherited from:
AbstractCollection
def truncate(): IO[Unit]

Attributes

Inherited from:
AbstractCollection
def withLock[Return](id: Id[D])(f: (DocLock[D]) => IO[Return])(implicit existingLock: DocLock[D]): IO[Return]

Attributes

Inherited from:
AbstractCollection

Concrete fields

lazy val query: Query[D]

Inherited fields

val atomic: Boolean

Attributes

Inherited from:
Collection
val autoCommit: Boolean

Attributes

Inherited from:
Collection
val collectionName: String

Attributes

Inherited from:
Collection
lazy protected val store: Store

Attributes

Inherited from:
AbstractCollection

Implicits

Inherited and Abstract implicits

implicit val rw: RW[D]

Attributes

Inherited from:
DocumentModel