case class AsyncQuery[Doc <: Document[Doc], Model <: DocumentModel[Doc]](asyncCollection: AsyncCollection[Doc, Model], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil) extends Product with Serializable
- Self Type
- AsyncQuery[Doc, Model]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AsyncQuery
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new AsyncQuery(asyncCollection: AsyncCollection[Doc, Model], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aggregate(f: (Model) => List[AggregateFunction[_, _, Doc]]): AsyncAggregateQuery[Doc, Model]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val asyncCollection: AsyncCollection[Doc, Model]
- def clearFilters: AsyncQuery[Doc, Model]
- def clearLimit: AsyncQuery[Doc, Model]
- def clearSort: AsyncQuery[Doc, Model]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def collection: Collection[Doc, Model]
- Attributes
- protected
- def count(implicit transaction: Transaction[Doc]): Task[Int]
- def countTotal(b: Boolean): AsyncQuery[Doc, Model]
- val countTotal: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def facet(f: (Model) => FacetField[Doc], path: List[String] = Nil, childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): AsyncQuery[Doc, Model]
- def facets(f: (Model) => List[FacetField[Doc]], childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): AsyncQuery[Doc, Model]
- val facets: List[FacetQuery[Doc]]
- def filter(f: (Model) => Filter[Doc]): AsyncQuery[Doc, Model]
- val filter: Option[Filter[Doc]]
- def first(implicit transaction: Transaction[Doc]): Task[Option[Doc]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def grouped[F](f: (Model) => Field[Doc, F], direction: SortDirection = SortDirection.Ascending)(implicit transaction: Transaction[Doc]): Stream[(F, List[Doc])]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def limit(limit: Int): AsyncQuery[Doc, Model]
- val limit: Option[Int]
- def minDocScore(min: Double): AsyncQuery[Doc, Model]
- val minDocScore: Option[Double]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def offset(offset: Int): AsyncQuery[Doc, Model]
- val offset: Int
- def one(implicit transaction: Transaction[Doc]): Task[Doc]
- def process(establishLock: Boolean = true, deleteOnNone: Boolean = true, safeModify: Boolean = true, maxConcurrent: Int = 1)(f: (Doc) => Task[Option[Doc]])(implicit transaction: Transaction[Doc]): Task[Int]
Processes through each result record from the query modifying the data in the database.
Processes through each result record from the query modifying the data in the database.
- establishLock
whether to establish an id lock to avoid concurrent modification (defaults to true)
- deleteOnNone
whether to delete the record if the function returns None (defaults to true)
- safeModify
whether to use safe modification. This results in loading the same object twice, but should never risk concurrent modification occurring. (defaults to true)
- maxConcurrent
the number of concurrent threads to process with (defaults to 1 for single-threaded)
- f
the processing function for records
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val scoreDocs: Boolean
- def scored: AsyncQuery[Doc, Model]
- def sort(sort: Sort*): AsyncQuery[Doc, Model]
- val sort: List[Sort]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toList(implicit transaction: Transaction[Doc]): Task[List[Doc]]
- def toQuery: Query[Doc, Model]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object search
- object stream
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)