Packages

case class Query[Doc <: Document[Doc], Model <: DocumentModel[Doc], V](model: Model, store: Store[Doc, Model], conversion: Conversion[Doc, V], 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
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(model: Model, store: Store[Doc, Model], conversion: Conversion[Doc, V], 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)

Type Members

  1. type Q = Query[Doc, Model, V]

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

  45. def productElementNames: Iterator[String]
    Definition Classes
    Product
  46. val scoreDocs: Boolean
  47. def scored: Q
  48. def search(implicit transaction: Transaction[Doc]): Task[SearchResults[Doc, Model, V]]
  49. def sort(sort: Sort*): Q
  50. val sort: List[Sort]
  51. val store: Store[Doc, Model]
  52. def stream(implicit transaction: Transaction[Doc]): Stream[V]
  53. def streamScored(implicit transaction: Transaction[Doc]): Stream[(V, Double)]
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toList(implicit transaction: Transaction[Doc]): Task[List[V]]
  56. def value[F](f: (Model) => Field[Doc, F]): Query[Doc, Model, F]
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. 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