Class TransactionKeyspace
java.lang.Object
com.couchbase.client.java.transactions.TransactionKeyspace
A keyspace represents a triple of bucket, scope and collection.
-
Method Summary
Modifier and TypeMethodDescriptionbucket()
The name of the bucket.The name of the collection.static TransactionKeyspace
Creates a keyspace with a bucket name and default scope and default collection.static TransactionKeyspace
Creates a keyspace with a bucket name, collection name and default scope.static TransactionKeyspace
Creates a keyspace with bucket name, scope name and collection name.scope()
The name of the scope.toString()
-
Method Details
-
create
Creates a keyspace with a bucket name and default scope and default collection.- Parameters:
bucket
- the name of the bucket.- Returns:
- the created keyspace for the eventing function.
-
create
Creates a keyspace with a bucket name, collection name and default scope.- Parameters:
bucket
- the name of the bucket.collection
- the name of the collection.- Returns:
- the created keyspace for the eventing function.
-
create
Creates a keyspace with bucket name, scope name and collection name.- Parameters:
bucket
- the name of the bucket.scope
- the name of the scope.collection
- the name of the collection.- Returns:
- the created keyspace for the eventing function.
-
bucket
The name of the bucket. -
scope
The name of the scope. -
collection
The name of the collection. -
toString
-