QuerySpec class

A compiled collection query, ready for a CrdtTable to execute: the conjunction of predicates, an optional order, and a keyset page window.

Constructors

QuerySpec({required List<QueryPredicate> predicates, String? orderByPath, CrdtType orderByType = const LwwRegister(), bool descending = false, int? limit, QueryCursor? after})
Creates a spec. Built by CollectionQuery; validation happens there.
const

Properties

after → QueryCursor?
Resume after this position (exclusive) in the query's total order: keyset pagination. null starts from the beginning.
final
descending → bool
Whether the order is reversed. The document-id tiebreak reverses with it, so pages stay disjoint in either direction.
final
hashCode → int
The hash code for this object.
no setterinherited
limit → int?
The maximum number of documents to return, or null for all.
final
orderByPath → String?
The field path to order by, or null to order by document id alone. Documents that lack the field sort together, before every non-null value (after them when descending).
final
orderByType → CrdtType
The CrdtType of the field at orderByPath.
final
predicates → List<QueryPredicate>
The where clauses, combined with AND.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited