Package com.couchbase.client.kotlin.view

Types

Link copied to clipboard
enum DesignDocumentNamespace : Enum<DesignDocumentNamespace>
Link copied to clipboard
enum ViewErrorMode : Enum<ViewErrorMode>
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
class ViewMetadata : ViewFlowItem

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

Link copied to clipboard
enum ViewOrdering : Enum<ViewOrdering>
Link copied to clipboard
class ViewResult(rows: List<ViewRow>, metadata: ViewMetadata)
Link copied to clipboard
class ViewRow : ViewFlowItem

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.