AsyncAggregateQuery

lightdb.async.AsyncAggregateQuery
case class AsyncAggregateQuery[Doc <: Document[Doc], Model <: DocumentModel[Doc]](query: Query[Doc, Model], functions: List[AggregateFunction[_, _, Doc]], filter: Option[AggregateFilter[Doc]], sort: List[(AggregateFunction[_, _, Doc], SortDirection)])

Attributes

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

Members list

Value members

Concrete methods

def count(implicit transaction: Transaction[Doc]): IO[Int]
def filter(f: Model => AggregateFilter[Doc], and: Boolean): AsyncAggregateQuery[Doc, Model]
def filters(f: Model => List[AggregateFilter[Doc]]): AsyncAggregateQuery[Doc, Model]
def sort(f: Model => AggregateFunction[_, _, Doc], direction: SortDirection): AsyncAggregateQuery[Doc, Model]
def stream(implicit transaction: Transaction[Doc]): Stream[IO, MaterializedAggregate[Doc, Model]]
def toList(implicit transaction: Transaction[Doc]): IO[List[MaterializedAggregate[Doc, Model]]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product