SplitCollectionTransaction

lightdb.store.split.SplitCollectionTransaction
case class SplitCollectionTransaction[Doc <: Document[Doc], Model <: DocumentModel[Doc], Storage <: Store[Doc, Model], Searching <: Collection[Doc, Model]](store: SplitCollection[Doc, Model, Storage, Searching], parent: Option[Transaction[Doc, Model]]) extends CollectionTransaction[Doc, Model]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait CollectionTransaction[Doc, Model]
trait Transaction[Doc, Model]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def aggregate(query: AggregateQuery[Doc, Model]): Stream[MaterializedAggregate[Doc, Model]]

Attributes

Definition Classes
override def aggregateCount(query: AggregateQuery[Doc, Model]): Task[Int]

Attributes

Definition Classes
override def doSearch[V](query: Query[Doc, Model, V]): Task[SearchResults[Doc, Model, V]]

Attributes

Definition Classes
override def jsonStream: Stream[Json]

Attributes

Definition Classes
def searching: store.searching.TX
def storage: store.storage.TX
override def truncate: Task[Int]

Attributes

Definition Classes

Inherited methods

def apply[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Doc]

Attributes

Inherited from:
Transaction
def apply(id: Id[Doc]): Task[Doc]

Attributes

Inherited from:
Transaction
final def close: Task[Unit]

Attributes

Inherited from:
Transaction
final def commit: Task[Unit]

Attributes

Inherited from:
Transaction
final def count: Task[Int]

Attributes

Inherited from:
Transaction
def delete(id: Id[Doc]): Task[Boolean]

Attributes

Inherited from:
Transaction
final def delete[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Boolean]

Attributes

Inherited from:
Transaction
final def exists(id: Id[Doc]): Task[Boolean]

Attributes

Inherited from:
Transaction
protected def fromString(string: String): Doc

Attributes

Inherited from:
Transaction
def get(id: Id[Doc]): Task[Option[Doc]]

Attributes

Inherited from:
Transaction
def get[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Option[Doc]]

Attributes

Inherited from:
Transaction
def getAll(ids: Seq[Id[Doc]]): Stream[Doc]

Attributes

Inherited from:
Transaction
def getOrCreate(id: Id[Doc], create: => Doc, establishLock: Boolean): Task[Doc]

Attributes

Inherited from:
Transaction
def insert(docs: Seq[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Transaction
final def insert(doc: Doc): Task[Doc]

Attributes

Inherited from:
Transaction
def list: Task[List[Doc]]

Attributes

Inherited from:
Transaction
def modify(id: Id[Doc], establishLock: Boolean, deleteOnNone: Boolean)(f: Forge[Option[Doc], Option[Doc]]): Task[Option[Doc]]

Attributes

Inherited from:
Transaction
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def rollback: Task[Unit]

Attributes

Inherited from:
Transaction
def stream: Stream[Doc]

Attributes

Inherited from:
Transaction
protected def toJson(string: String): Json

Attributes

Inherited from:
Transaction
protected def toString(doc: Doc): String

Attributes

Inherited from:
Transaction
def upsert(docs: Seq[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Transaction
final def upsert(doc: Doc): Task[Doc]

Attributes

Inherited from:
Transaction

Concrete fields

var applySearchUpdates: Boolean

Set this to false to ignore data changes in this transaction not applying changes to the searching transaction.

Set this to false to ignore data changes in this transaction not applying changes to the searching transaction.

This is useful for large modifications of data to avoid massive slowdowns, but leads to indexing getting out of sync. It is recommended when using this to reIndex immediately after finalizing the transaction when this is set to false.

Defaults to true.

Attributes

Inherited fields

lazy val query: Query[Doc, Model, Doc]

Attributes

Inherited from:
CollectionTransaction