Interface CouchbaseBucketManagerFactory
- All Superinterfaces:
AutoCloseable,org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory,Function<String,org.eclipse.jnosql.communication.keyvalue.BucketManager>
public interface CouchbaseBucketManagerFactory
extends org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory
A Couchbase specialization of BucketManagerFactory.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jnosql.communication.keyvalue.BucketManagergetBucketManager(String bucketName, String collection) Create a BucketManager using a given collection instead of the default<T> List<T>Creates aListfrom bucket name<K,V> Map<K, V> Creates aMapfrom bucket name<T> Queue<T>Creates aQueuefrom bucket name<T> Set<T>Creates aSetfrom bucket nameMethods inherited from interface org.eclipse.jnosql.communication.keyvalue.BucketManagerFactory
close, getList, getMap, getQueue, getSet
-
Method Details
-
getBucketManager
org.eclipse.jnosql.communication.keyvalue.BucketManager getBucketManager(String bucketName, String collection) Create a BucketManager using a given collection instead of the default- Parameters:
bucketName- the bucket namecollection- the collection name- Returns:
- a BucketManager instance
- Throws:
NullPointerException- when there is null parameter
-
getQueue
Creates aQueuefrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket nametype- the value classkey- key to the queue- Returns:
- a
Queueinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when either bucketName or class are null
-
getSet
Creates aSetfrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket nametype- the valeu classkey- key to the set- Returns:
- a
Setinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when either bucketName or class are null
-
getList
Creates aListfrom bucket name- Type Parameters:
T- the value type- Parameters:
bucketName- a bucket nametype- the valeu classkey- key to the List- Returns:
- a
Listinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when either bucketName or class are null
-
getMap
Creates aMapfrom bucket name- Type Parameters:
K- the key typeV- the value type- Parameters:
bucketName- the bucket namekey- key to the MapkeyType- the key classvalueType- the value class- Returns:
- a
Mapinstance - Throws:
UnsupportedOperationException- when the database does not have to itNullPointerException- when either bucketName or class are null
-