public class EventingFunctionKeyspace extends Object
Modifier and Type | Method and 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() |
public static EventingFunctionKeyspace create(String bucket)
bucket
- the name of the bucket.public static EventingFunctionKeyspace create(String bucket, String collection)
bucket
- the name of the bucket.collection
- the name of the collection.public static EventingFunctionKeyspace create(String bucket, String scope, String collection)
bucket
- the name of the bucket.scope
- the name of the scope.collection
- the name of the collection.public static EventingFunctionKeyspace create(Collection collection)
collection
- the collection from where to extract the properties.public String bucket()
public String scope()
public String collection()
Copyright © 2024 Couchbase, Inc.. All rights reserved.