Class EventingFunctionKeyspace
- java.lang.Object
-
- com.couchbase.client.java.manager.eventing.EventingFunctionKeyspace
-
public class EventingFunctionKeyspace extends Object
A keyspace represents a triple of bucket, scope and collection.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bucket()
The name of the bucket.String
collection()
The name of the collection.static EventingFunctionKeyspace
create(Collection collection)
Creates a keyspace by extracting bucket, scope and collection from the collection instance.static EventingFunctionKeyspace
create(String bucket)
Creates a keyspace with a bucket name and default scope and default collection.static EventingFunctionKeyspace
create(String bucket, String collection)
Creates a keyspace with a bucket name, collection name and default scope.static EventingFunctionKeyspace
create(String bucket, String scope, String collection)
Creates a keyspace with bucket name, scope name and collection name.String
scope()
The name of the scope.String
toString()
-
-
-
Method Detail
-
create
public static EventingFunctionKeyspace create(String bucket)
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
public static EventingFunctionKeyspace create(String bucket, String collection)
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
public static EventingFunctionKeyspace create(String bucket, String scope, String collection)
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.
-
create
public static EventingFunctionKeyspace create(Collection collection)
Creates a keyspace by extracting bucket, scope and collection from the collection instance.- Parameters:
collection
- the collection from where to extract the properties.- Returns:
- the created keyspace for the eventing function.
-
bucket
public String bucket()
The name of the bucket.
-
scope
public String scope()
The name of the scope.
-
collection
public String collection()
The name of the collection.
-
-