limit

fun limit(rows: Int): Query

The same query returning at most rows.

Genuinely stops the work: rows come out in key order from a merge, so the ordinals past the limit are never decoded, their documents never fetched and never projected. What it does not bound is the bitmap algebra, which happens per segment before the first row is emitted.


val limit: Int

Rows to return at most, or NO_LIMIT.