Packages

case class Query[Doc <: Document[Doc], Model <: DocumentModel[Doc], V](transaction: CollectionTransaction[Doc, Model], conversion: Conversion[Doc, V], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, pageSize: Int = 1000, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil, optimize: Boolean = false) extends Product with Serializable

Self Type
Query[Doc, Model, V]
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  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 Query(transaction: CollectionTransaction[Doc, Model], conversion: Conversion[Doc, V], filter: Option[Filter[Doc]] = None, sort: List[Sort] = Nil, offset: Int = 0, limit: Option[Int] = None, pageSize: Int = 1000, countTotal: Boolean = false, scoreDocs: Boolean = false, minDocScore: Option[Double] = None, facets: List[FacetQuery[Doc]] = Nil, optimize: Boolean = false)

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]]): AggregateQuery[Doc, Model]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearFilters: Q
  7. def clearLimit: Q
  8. def clearSort: Q
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. def collection: Collection[Doc, Model]
  11. def conversion[T](conversion: Conversion[Doc, T]): Query[Doc, Model, T]
  12. val conversion: Conversion[Doc, V]
  13. def converted[T](f: (Doc) => T): Query[Doc, Model, T]
  14. def count: Task[Int]
  15. def countTotal(b: Boolean): Q
  16. val countTotal: Boolean
  17. def distance[G <: Geo](f: (Model) => Field[Doc, List[G]], from: Point, sort: Boolean = true, radius: Option[Distance] = None): Query[Doc, Model, DistanceAndDoc[Doc]]
  18. def docAndIndexes: Query[Doc, Model, MaterializedAndDoc[Doc, Model]]
  19. def docs: Query[Doc, Model, Doc]
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def facet(f: (Model) => FacetField[Doc], path: List[String] = Nil, childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): Q
  22. def facets(f: (Model) => List[FacetField[Doc]], childrenLimit: Option[Int] = Some(10), dimsLimit: Option[Int] = Some(10)): Q
  23. val facets: List[FacetQuery[Doc]]
  24. def filter(f: (Model) => Filter[Doc]): Q
  25. val filter: Option[Filter[Doc]]
  26. def filterOption(f: (Model) => Option[Filter[Doc]]): Q
  27. def first: Task[V]
  28. def firstOption: Task[Option[V]]
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. def grouped[F](f: (Model) => Field[Doc, F], direction: SortDirection = SortDirection.Ascending): Stream[Grouped[F, Doc]]
  31. def id: Query[Doc, Model, Id[Doc]]
  32. def indexes: Query[Doc, Model, MaterializedIndex[Doc, Model]]
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def json(f: (Model) => List[Field[Doc, _]] = _ => model.fields): Query[Doc, Model, Json]
  35. def limit(limit: Int): Q
  36. val limit: Option[Int]
  37. def materialized(f: (Model) => List[Field[Doc, _]] = _ => model.indexedFields): Query[Doc, Model, MaterializedIndex[Doc, Model]]
  38. def minDocScore(min: Double): Q
  39. val minDocScore: Option[Double]
  40. def model: Model
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  44. def offset(offset: Int): Q
  45. val offset: Int
  46. val optimize: Boolean
  47. def optimized: Q
  48. def pageSize(size: Int): Q
  49. val pageSize: Int
  50. def process(establishLock: Boolean = true, deleteOnNone: Boolean = true, safeModify: Boolean = true)(f: Forge[Doc, Option[Doc]]): Unit

    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)

    f

    the processing function for records

  51. def productElementNames: Iterator[String]
    Definition Classes
    Product
  52. val scoreDocs: Boolean
  53. def scored: Q
  54. def search: Task[SearchResults[Doc, Model, V]]
  55. def sort(sort: Sort*): Q
  56. val sort: List[Sort]
  57. def stream: Stream[V]
  58. def streamPage: Stream[V]
  59. def streamScored: Stream[(V, Double)]
  60. def streamScoredPage: Stream[(V, Double)]
  61. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  62. def toList: Task[List[V]]
  63. val transaction: CollectionTransaction[Doc, Model]
  64. def unOptimized: Q
  65. def value[F](f: (Model) => Field[Doc, F]): Query[Doc, Model, F]
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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