@Beta
public interface KeyValueTableManager
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the
KeyValueTableManager . |
static KeyValueTableManager |
create(ClientConfig config)
Creates a new instance of
KeyValueTableManager . |
static KeyValueTableManager |
create(java.net.URI controller)
Creates a new instance of
KeyValueTableManager . |
boolean |
createKeyValueTable(java.lang.String scopeName,
java.lang.String keyValueTableName,
KeyValueTableConfiguration config)
Creates a new Key-Value Table.
|
boolean |
deleteKeyValueTable(java.lang.String scopeName,
java.lang.String keyValueTableName)
Deletes the provided Key-Value Table.
|
java.util.Iterator<KeyValueTableInfo> |
listKeyValueTables(java.lang.String scopeName)
Gets an iterator for all Key-Value Table in the given scope.
|
static KeyValueTableManager create(java.net.URI controller)
KeyValueTableManager
.controller
- The Controller URI.KeyValueTableManager
implementation.static KeyValueTableManager create(ClientConfig config)
KeyValueTableManager
.config
- Configuration for the client connection to Pravega.KeyValueTableManager
implementation.boolean createKeyValueTable(java.lang.String scopeName, java.lang.String keyValueTableName, KeyValueTableConfiguration config)
Note: This method is idempotent assuming called with the same name and config. This method may block.
scopeName
- The name of the scope to create this Key-Value Table in.keyValueTableName
- The name of the Key-Value Table to be created.config
- The configuration the Key-Value Table should use.boolean deleteKeyValueTable(java.lang.String scopeName, java.lang.String keyValueTableName)
scopeName
- The name of the scope of the Key-Value Table to delete.keyValueTableName
- The name of the Key-Value Table to be deleted.java.util.Iterator<KeyValueTableInfo> listKeyValueTables(java.lang.String scopeName)
scopeName
- The name of the scope for which to list Key-Value Tables in.KeyValueTableInfo
that can be used to iterate through all Key-Value Tables in the
Scope.void close()
KeyValueTableManager
.close
in interface java.lang.AutoCloseable
AutoCloseable.close()