Query
class Query
A predicate, what to return for each match, and how much of the store to look at.
Immutable, and every builder returns a new one, so a query is safe to keep and to reuse across snapshots. Rows come back in key order; there is no ordering by value, because a shredded column is ordered only within a segment and a value order across segments would need either full materialisation or a per-value merge — neither of which this phase claims.
val query = Query.where(path("$.team") eq "analytics" and (path("$.score") ge 10))
.project(Projection.of("$.team", "$.score"))
.limit(100)Content copied to clipboard
Functions
Link copied to clipboard
The same query returning projection.
The same query returning the fields named by expressions. See Projection.of.