Query

lightdb.query.Query
case class Query[D <: Document[D], V](indexSupport: IndexSupport[D], collection: AbstractCollection[D], convert: D => IO[V], filter: Option[Filter[D]], sort: List[Sort], scoreDocs: Boolean, offset: Int, pageSize: Int, limit: Option[Int], countTotal: Boolean)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

object scored

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
scored.type

Value members

Concrete methods

def clearSort: Query[D, V]
def convert[T](converter: D => T): Query[D, T]
def count: IO[Int]
def countTotal(b: Boolean): Query[D, V]
def distance(field: IndexedField[GeoPoint, D], from: GeoPoint, sort: Boolean, radius: Option[Length]): Query[D, DistanceAndDoc[D]]
def evalConvert[T](converter: D => IO[T]): Query[D, T]
def filter(filter: Filter[D], and: Boolean): Query[D, V]
def filters(filters: Filter[D]*): Query[D, V]
def first: IO[Option[V]]
def idStream(implicit context: SearchContext[D]): Stream[IO, Id[D]]
def limit(limit: Int): Query[D, V]
def offset(offset: Int): Query[D, V]
def one: IO[V]
def pageSize(size: Int): Query[D, V]
def pageStream(implicit context: SearchContext[D]): Stream[IO, PagedResults[D, V]]
def scoreDocs(b: Boolean): Query[D, V]
def search()(implicit context: SearchContext[D]): IO[PagedResults[D, V]]
def sort(sort: Sort*): Query[D, V]
def stream(implicit context: SearchContext[D]): Stream[IO, V]
def toIdList: IO[List[Id[D]]]
def toList: IO[List[V]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product