Bucket

class Bucket

Functions

collection
Link copied to clipboard
fun collection(name: String): Collection
Returns the requested collection in the bucket's default scope.
config
Link copied to clipboard
suspend fun config(timeout: Duration): BucketConfig
defaultCollection
Link copied to clipboard
fun defaultCollection(): Collection
Returns the default collection in this bucket's default scope.
defaultScope
Link copied to clipboard
fun defaultScope(): Scope
Returns this bucket's default scope.
scope
Link copied to clipboard
fun scope(name: String): Scope
Returns the requested scope.
viewQuery
Link copied to clipboard
fun viewQuery(designDocument: String, viewName: String, common: CommonOptions = CommonOptions.Default, serializer: JsonSerializer? = null, namespace: DesignDocumentNamespace = PRODUCTION, scanConsistency: ViewScanConsistency = ViewScanConsistency.updateAfter(), selection: ViewSelection = ViewSelection.range(), skip: Int = 0, limit: Int? = null, reduce: Boolean = true, group: ViewGroupLevel = ViewGroupLevel.none(), onError: ViewErrorMode = ViewErrorMode.CONTINUE, debug: Boolean = false, raw: Map<String, String>? = null): Flow<ViewFlowItem>
Queries a view on the bucket.
waitUntilReady
Link copied to clipboard
suspend fun waitUntilReady(timeout: Duration, services: Set<ServiceType> = emptySet(), desiredState: ClusterState = ClusterState.ONLINE): Bucket
Waits until SDK bootstrap is complete and the desired ClusterState is observed.

Properties

cluster
Link copied to clipboard
val cluster: Cluster
name
Link copied to clipboard
val name: String
viewIndexes
Link copied to clipboard
val viewIndexes: ViewIndexManager