DocumentKeyQuery

class DocumentKeyQuery(val prefix: String = "", val limit: Int = 100, val maxBytes: Long = Long.MAX_VALUE, val after: Cursor? = null, val order: SearchOrder = SearchOrder.ASCENDING)(source)

A search of documents in key order (SPEC.md §3.3), in a store with a CreationOptions.documentKey: every visible document whose key starts with prefix ("" for all), once, with its root as the hit and SearchHit.documentKey set. Keys compare by code points, which is the order of their UTF-8 bytes; with Normalization.NFC the prefix is normalized as keys are.

A store without document keys refuses the query with IllegalStateException. Queries are values: two instances with the same settings are equal, and copy derives a variant.

Constructors

Link copied to clipboard
constructor(prefix: String = "", limit: Int = 100, maxBytes: Long = Long.MAX_VALUE, after: Cursor? = null, order: SearchOrder = SearchOrder.ASCENDING)

Properties

Link copied to clipboard
Link copied to clipboard
val limit: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(prefix: String = this.prefix, limit: Int = this.limit, maxBytes: Long = this.maxBytes, after: Cursor? = this.after, order: SearchOrder = this.order): DocumentKeyQuery

This query with the given settings changed; the result is validated like a new instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String