c

lightdb.async

AsyncQuery

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
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncQuery
  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 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

  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 aggregate(f: (Model) => List[AggregateFunction[_, _, Doc]]): AsyncAggregateQuery[Doc, Model]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val asyncCollection: AsyncCollection[Doc, Model]
  7. def clearFilters: AsyncQuery[Doc, Model]
  8. def clearLimit: AsyncQuery[Doc, Model]
  9. def clearSort: AsyncQuery[Doc, Model]
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  11. def collection: Collection[Doc, Model]
    Attributes
    protected
  12. def count(implicit transaction: Transaction[Doc]): Task[Int]
  13. def countTotal(b: Boolean): AsyncQuery[Doc, Model]
  14. val countTotal: Boolean
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def facet(f: (Model) => FacetField[Doc], path: List[String] = Nil, childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): AsyncQuery[Doc, Model]
  17. def facets(f: (Model) => List[FacetField[Doc]], childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): AsyncQuery[Doc, Model]
  18. val facets: List[FacetQuery[Doc]]
  19. def filter(f: (Model) => Filter[Doc]): AsyncQuery[Doc, Model]
  20. val filter: Option[Filter[Doc]]
  21. def first(implicit transaction: Transaction[Doc]): Task[Option[Doc]]
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. def grouped[F](f: (Model) => Field[Doc, F], direction: SortDirection = SortDirection.Ascending)(implicit transaction: Transaction[Doc]): Stream[(F, List[Doc])]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def limit(limit: Int): AsyncQuery[Doc, Model]
  26. val limit: Option[Int]
  27. def minDocScore(min: Double): AsyncQuery[Doc, Model]
  28. val minDocScore: Option[Double]
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  32. def offset(offset: Int): AsyncQuery[Doc, Model]
  33. val offset: Int
  34. def one(implicit transaction: Transaction[Doc]): Task[Doc]
  35. 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

  36. def productElementNames: Iterator[String]
    Definition Classes
    Product
  37. val scoreDocs: Boolean
  38. def scored: AsyncQuery[Doc, Model]
  39. def sort(sort: Sort*): AsyncQuery[Doc, Model]
  40. val sort: List[Sort]
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toList(implicit transaction: Transaction[Doc]): Task[List[Doc]]
  43. def toQuery: Query[Doc, Model]
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. object search
  48. object stream

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