SelectResult

The nodes one JSONPath query selects from one value, as JsonStore.select returns them: an RFC 9535 nodelist, in the RFC's order and with its duplicates, read lazily from one snapshot of the store (SPEC.md §10.3). Nodes can be read until the result is closed. A result is consumed once: iterator and nodes share one position. Not thread-safe.

Properties

Link copied to clipboard
abstract val nodes: Flow<SelectedNode>

The remaining nodes as a flow. Collecting it reads the store on the collecting coroutine's thread, so collect on a dispatcher that allows blocking work.

Link copied to clipboard
abstract val snapshotLsn: Long

The snapshot the result reads.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract operator fun iterator(): Iterator<SelectedNode>

The remaining nodes, in the nodelist's order.