Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
sealed class ViewFlowItem
Link copied to clipboard
sealed class ViewGroupLevel

Specifies how to group the keys when a reduce function is used. Create new instances using the factory methods.

Link copied to clipboard

Metadata about View execution. Always the last item in the flow.

Link copied to clipboard
Link copied to clipboard
class ViewResult(val rows: List<ViewRow>, val metadata: ViewMetadata)
Link copied to clipboard

One row of a View result.

Link copied to clipboard
sealed class ViewScanConsistency
Link copied to clipboard
sealed class ViewSelection

Specify whether to query the view for specific keys, or a range. Create new instances using one of the factory methods.

Functions

Link copied to clipboard
suspend fun Flow<ViewFlowItem>.execute(): ViewResult

Collects a View Flow into a ViewResult. Should only be called if the View results are expected to fit in memory.

inline suspend fun Flow<ViewFlowItem>.execute(crossinline rowAction: suspend (ViewRow) -> Unit): ViewMetadata

Collects a View Flow, passing each result row to the given lambda. Returns metadata about the View.