public class ReactiveScope extends Object
If no scope is explicitly provided, the default scope is used.
Modifier and Type | Method and Description |
---|---|
Mono<ReactiveAnalyticsResult> |
analyticsQuery(String statement)
Performs an Analytics query with default
AnalyticsOptions on a scope |
Mono<ReactiveAnalyticsResult> |
analyticsQuery(String statement,
AnalyticsOptions options)
Performs an Analytics query with custom
AnalyticsOptions on a scope |
AsyncScope |
async()
Returns the underlying async scope.
|
String |
bucketName()
The name of the bucket this scope is attached to.
|
ReactiveCollection |
collection(String collectionName)
Opens a collection for this scope with an explicit name.
|
Core |
core()
Provides access to the underlying
Core . |
ClusterEnvironment |
environment()
Provides access to the configured
ClusterEnvironment for this scope. |
String |
name()
The name of the scope.
|
Mono<ReactiveQueryResult> |
query(String statement)
Performs a N1QL query with default
QueryOptions in a Scope |
Mono<ReactiveQueryResult> |
query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions in a Scope |
public String name()
public String bucketName()
public AsyncScope async()
@Stability.Volatile public Core core()
Core
.
This is advanced API, use with care!
public ClusterEnvironment environment()
ClusterEnvironment
for this scope.@Stability.Volatile public ReactiveCollection collection(String collectionName)
collectionName
- the collection name.@Stability.Volatile public Mono<ReactiveQueryResult> query(String statement)
QueryOptions
in a Scopestatement
- the N1QL query statement as a raw string.ReactiveQueryResult
once the response arrives successfully.@Stability.Volatile public Mono<ReactiveQueryResult> query(String statement, QueryOptions options)
QueryOptions
in a Scopestatement
- the N1QL query statement as a raw string.options
- the custom options for this query.ReactiveQueryResult
once the response arrives successfully.@Stability.Volatile public Mono<ReactiveAnalyticsResult> analyticsQuery(String statement)
AnalyticsOptions
on a scopestatement
- the Analytics query statement as a raw string.ReactiveAnalyticsResult
once the response arrives successfully.@Stability.Volatile public Mono<ReactiveAnalyticsResult> analyticsQuery(String statement, AnalyticsOptions options)
AnalyticsOptions
on a scopestatement
- the Analytics query statement as a raw string.options
- the custom options for this analytics query.ReactiveAnalyticsResult
once the response arrives successfully.Copyright © 2020 Couchbase, Inc.. All rights reserved.