Package com.couchbase.client.java
Class ReactiveScope
java.lang.Object
com.couchbase.client.java.ReactiveScope
The scope identifies a group of collections and allows high application
density as a result.
If no scope is explicitly provided, the default scope is used.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionanalyticsQuery(String statement) Performs an Analytics query with defaultAnalyticsOptionson a scopeanalyticsQuery(String statement, AnalyticsOptions options) Performs an Analytics query with customAnalyticsOptionson a scopeasync()Returns the underlying async scope.The name of the bucket this scope is attached to.collection(String collectionName) Opens a collection for this scope with an explicit name.core()Provides access to the underlyingCore.Provides access to the configuredClusterEnvironmentfor this scope.name()The name of the scope.Performs a N1QL query with defaultQueryOptionsin a Scopequery(String statement, QueryOptions options) Performs a N1QL query with customQueryOptionsin a ScopesearchQuery(String indexName, SearchQuery query) Performs a Full Text Search (FTS) query with defaultSearchOptions.searchQuery(String indexName, SearchQuery query, SearchOptions options) Performs a Full Text Search (FTS) query with customSearchOptions.
-
Method Details
-
name
The name of the scope.- Returns:
- the name of the scope.
-
bucketName
The name of the bucket this scope is attached to. -
async
Returns the underlying async scope. -
core
Provides access to the underlyingCore.This is advanced API, use with care!
-
environment
Provides access to the configuredClusterEnvironmentfor this scope. -
collection
Opens a collection for this scope with an explicit name.- Parameters:
collectionName- the collection name.- Returns:
- the requested collection if successful.
-
query
Performs a N1QL query with defaultQueryOptionsin a Scope- Parameters:
statement- the N1QL query statement as a raw string.- Returns:
- the
ReactiveQueryResultonce the response arrives successfully.
-
query
Performs a N1QL query with customQueryOptionsin a Scope- Parameters:
statement- the N1QL query statement as a raw string.options- the custom options for this query.- Returns:
- the
ReactiveQueryResultonce the response arrives successfully.
-
analyticsQuery
Performs an Analytics query with defaultAnalyticsOptionson a scope- Parameters:
statement- the Analytics query statement as a raw string.- Returns:
- the
ReactiveAnalyticsResultonce the response arrives successfully.
-
analyticsQuery
Performs an Analytics query with customAnalyticsOptionson a scope- Parameters:
statement- the Analytics query statement as a raw string.options- the custom options for this analytics query.- Returns:
- the
ReactiveAnalyticsResultonce the response arrives successfully.
-
searchQuery
Performs a Full Text Search (FTS) query with defaultSearchOptions.- Parameters:
query- the query, in the form of aSearchQuery- Returns:
- the
ReactiveSearchResultonce the response arrives successfully, inside aMono
-
searchQuery
public Mono<ReactiveSearchResult> searchQuery(String indexName, SearchQuery query, SearchOptions options) Performs a Full Text Search (FTS) query with customSearchOptions.- Parameters:
query- the query, in the form of aSearchQueryoptions- the custom options for this query.- Returns:
- the
ReactiveSearchResultonce the response arrives successfully, inside aMono
-