-
Methods in com.couchbase.client.java that return Bucket
Modifier and Type |
Method |
Description |
Bucket |
Cluster.openBucket() |
Opens the default bucket with an empty password with the default connect timeout.
|
Bucket |
Cluster.openBucket(long timeout,
TimeUnit timeUnit) |
Opens the default bucket with an empty password with a custom timeout.
|
Bucket |
Cluster.openBucket(String name) |
Opens the bucket with the given name, using the default timeout and the password from the Authenticator
If no credential context can be found for the bucket when using ClassicAuthenticator , the old behavior of
defaulting to an empty password is used.
|
Bucket |
Cluster.openBucket(String name,
long timeout,
TimeUnit timeUnit) |
Opens the bucket with the given name, using a custom timeout and the password from the Authenticator
If no credential context can be found for the bucket when using ClassicAuthenticator , the old behavior of
defaulting to an empty password is used.
|
Bucket |
Cluster.openBucket(String name,
String password) |
Opens a bucket identified by its name and password with the default connect timeout.
|
Bucket |
Cluster.openBucket(String name,
String password,
long timeout,
TimeUnit timeUnit) |
Opens a bucket identified by its name and password with a custom timeout.
|
Bucket |
Cluster.openBucket(String name,
String password,
List<Transcoder<? extends Document,?>> transcoders) |
Opens a bucket identified by its name and password with custom transcoders and with the default connect timeout.
|
Bucket |
Cluster.openBucket(String name,
String password,
List<Transcoder<? extends Document,?>> transcoders,
long timeout,
TimeUnit timeUnit) |
Opens a bucket identified by its name and password with custom transcoders and with a custom timeout.
|
Bucket |
Cluster.openBucket(String name,
List<Transcoder<? extends Document,?>> transcoders) |
Opens the bucket with the given name, using the default timeout and the password from the Authenticator
If no credential context can be found for the bucket when using ClassicAuthenticator , the old behavior of
defaulting to an empty password is used.
|
Bucket |
Cluster.openBucket(String name,
List<Transcoder<? extends Document,?>> transcoders,
long timeout,
TimeUnit timeUnit) |
Opens the bucket with the given name, using a custom timeout and the password from the Authenticator
If no credential context can be found for the bucket when using ClassicAuthenticator , the old behavior
of defaulting to an empty password is used.
|
Bucket |
CouchbaseCluster.openBucket() |
|
Bucket |
CouchbaseCluster.openBucket(long timeout,
TimeUnit timeUnit) |
|
Bucket |
CouchbaseCluster.openBucket(String name) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
long timeout,
TimeUnit timeUnit) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
String password) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
String password,
long timeout,
TimeUnit timeUnit) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
String password,
List<Transcoder<? extends Document,?>> transcoders) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
String password,
List<Transcoder<? extends Document,?>> transcoders,
long timeout,
TimeUnit timeUnit) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
List<Transcoder<? extends Document,?>> transcoders) |
|
Bucket |
CouchbaseCluster.openBucket(String name,
List<Transcoder<? extends Document,?>> transcoders,
long timeout,
TimeUnit timeUnit) |
|
-
Constructors in com.couchbase.client.java.datastructures.collections with parameters of type Bucket
Constructor |
Description |
CouchbaseArrayList(String id,
Bucket bucket) |
Create a new Couchbase-backed List, backed by the document identified by id
in bucket .
|
CouchbaseArrayList(String id,
Bucket bucket,
E... content) |
Create a new Couchbase-backed List, backed by the document identified by id
in bucket .
|
CouchbaseArrayList(String id,
Bucket bucket,
Collection<? extends E> content) |
Create a new Couchbase-backed List, backed by the document identified by id
in bucket .
|
CouchbaseArraySet(String id,
Bucket bucket) |
Create a new CouchbaseArraySet , backed by the document identified by id
in the given Couchbase bucket .
|
CouchbaseArraySet(String id,
Bucket bucket,
Set<? extends T> initialData) |
Create a new CouchbaseArraySet , backed by the document identified by id
in the given Couchbase bucket .
|
CouchbaseMap(String id,
Bucket bucket) |
Create a new CouchbaseMap , backed by the document identified by id
in the given Couchbase bucket .
|
CouchbaseMap(String id,
Bucket bucket,
Map<String,? extends V> data) |
Create a new CouchbaseMap , backed by the document identified by id
in the given Couchbase bucket .
|
CouchbaseQueue(String id,
Bucket bucket) |
Create a new Couchbase-backed Queue, backed by the document identified by id
in bucket .
|
CouchbaseQueue(String id,
Bucket bucket,
E... content) |
Create a new Couchbase-backed Queue, backed by the document identified by id
in bucket .
|
CouchbaseQueue(String id,
Bucket bucket,
Collection<? extends E> content) |
Create a new Couchbase-backed Queue, backed by the document identified by id
in bucket .
|
-
-
-
-
Methods in com.couchbase.client.java.util with parameters of type Bucket
Modifier and Type |
Method |
Description |
static NodeLocatorHelper |
NodeLocatorHelper.create(Bucket bucket) |
|
rx.Single<JsonDocument> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Bucket bucket) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them (using the
environments KV timeout for both primary and replica).
|
rx.Single<JsonDocument> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Bucket bucket,
long timeout) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them (with a custom
timeout value applied to both primary and replica).
|
rx.Single<JsonDocument> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Bucket bucket,
long primaryTimeout,
long replicaTimeout) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them (with custom
primary and replica timeout values).
|
static <D extends Document<?>> rx.Single<D> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Class<D> target,
Bucket bucket) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them (using the
environments KV timeout for both primary and replica).
|
static <D extends Document<?>> rx.Single<D> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Class<D> target,
Bucket bucket,
long timeout) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them (with a custom
timeout value applied to both primary and replica).
|
static <D extends Document<?>> rx.Single<D> |
TransparentReplicaGetHelper.getFirstPrimaryOrReplica(String id,
Class<D> target,
Bucket bucket,
long primaryTimeout,
long replicaTimeout) |
Asynchronously fetch the document from the primary and if that operations fails try
all the replicas and return the first document that comes back from them.
|
static rx.Completable |
AnalyticsIngester.ingest(Bucket bucket,
AnalyticsQuery query) |
Takes an AnalyticsQuery and ingests all rows back into the KV layer as documents with
default settings applied.
|
static rx.Completable |
AnalyticsIngester.ingest(Bucket bucket,
AnalyticsQuery query,
AnalyticsIngester.IngestOptions options) |
Takes an AnalyticsQuery and ingests all rows back into the KV layer as documents.
|
-
Constructors in com.couchbase.client.java.view with parameters of type Bucket
Constructor |
Description |
DefaultSpatialViewResult(CouchbaseEnvironment env,
Bucket bucket,
rx.Observable<AsyncSpatialViewRow> rows,
boolean success,
rx.Observable<JsonObject> error,
JsonObject debug) |
|
DefaultViewResult(CouchbaseEnvironment env,
Bucket bucket,
rx.Observable<AsyncViewRow> rows,
int totalRows,
boolean success,
rx.Observable<JsonObject> error,
JsonObject debug) |
|