Uses of Class
com.couchbase.client.java.Collection
Packages that use Collection
Package
Description
Holds all classes that are needed for the Couchbase Java SDK.
JSON encoding and decoding.
-
Uses of Collection in com.couchbase.client.java
Methods in com.couchbase.client.java that return CollectionModifier and TypeMethodDescriptionBucket.collection
(String collectionName) Provides access to the collection with the given name for thisBucket
using the default scope.Scope.collection
(String collectionName) Opens a collection for this scope with an explicit name.Bucket.defaultCollection()
Opens the default collection for thisBucket
using the default scope. -
Uses of Collection in com.couchbase.client.java.batch
Methods in com.couchbase.client.java.batch with parameters of type CollectionModifier and TypeMethodDescriptionBatchHelper.exists
(Collection collection, Collection<String> ids) Returns a list of ids for the documents that exist.ReactiveBatchHelper.exists
(Collection collection, Collection<String> ids) Returns a flux of ids for the documents that exist.BatchHelper.getIfExists
(Collection collection, Collection<String> ids) First checks if the given IDs exist and if so fetches their contents.ReactiveBatchHelper.getIfExists
(Collection collection, Collection<String> ids) First checks if the given IDs exist and if so fetches their contents. -
Uses of Collection in com.couchbase.client.java.datastructures
Constructors in com.couchbase.client.java.datastructures with parameters of type CollectionModifierConstructorDescriptionCouchbaseArrayList
(String id, Collection collection, Class<E> entityType, ArrayListOptions options) CouchbaseArraySet
(String id, Collection collection, Class<T> entityType, ArraySetOptions options) Create a newCouchbaseArraySet
, backed by the document identified byid
in the given Couchbasebucket
.CouchbaseMap
(String id, Collection collection, Class<E> entityType, MapOptions options) CouchbaseQueue
(String id, Collection collection, Class<E> entityType, QueueOptions options) -
Uses of Collection in com.couchbase.client.java.json
Methods in com.couchbase.client.java.json with parameters of type CollectionModifier and TypeMethodDescriptionJsonObject.crypto
(Collection collection) Returns a view of the object for reading and writing encrypted fields. -
Uses of Collection in com.couchbase.client.java.manager.eventing
Methods in com.couchbase.client.java.manager.eventing with parameters of type CollectionModifier and TypeMethodDescriptionstatic EventingFunctionKeyspace
EventingFunctionKeyspace.create
(Collection collection) Creates a keyspace by extracting bucket, scope and collection from the collection instance. -
Uses of Collection in com.couchbase.client.java.transactions
Methods in com.couchbase.client.java.transactions with parameters of type CollectionModifier and TypeMethodDescriptionTransactionAttemptContext.get
(Collection collection, String id) Gets a document from the specified Couchbasecollection
matching the specifiedid
.TransactionAttemptContext.get
(Collection collection, String id, TransactionGetOptions options) Gets a document from the specified Couchbasecollection
matching the specifiedid
.TransactionAttemptContext.getReplicaFromPreferredServerGroup
(Collection collection, String id) A convenience wrapper aroundTransactionAttemptContext.getReplicaFromPreferredServerGroup(Collection, String, TransactionGetReplicaFromPreferredServerGroupOptions)
using default options.TransactionAttemptContext.getReplicaFromPreferredServerGroup
(Collection collection, String id, TransactionGetReplicaFromPreferredServerGroupOptions options) Gets a document from the specified Couchbasecollection
matching the specifiedid
.TransactionAttemptContext.insert
(Collection collection, String id, Object content) Inserts a new document into the specified Couchbasecollection
.TransactionAttemptContext.insert
(Collection collection, String id, Object content, TransactionInsertOptions options) Inserts a new document into the specified Couchbasecollection
. -
Uses of Collection in com.couchbase.client.java.transactions.config
Methods in com.couchbase.client.java.transactions.config with parameters of type CollectionModifier and TypeMethodDescriptionTransactionOptions.metadataCollection
(Collection collection) Allows setting a custom collection to use for any transactional metadata documents created by this transaction.