@InterfaceStability.Evolving public interface MetadataStore
Modifier and Type | Method and Description |
---|---|
java.util.Map<byte[],byte[]> |
all()
Returns all the entries in this metadata store.
|
void |
close()
Closes the metadata store, if applicable, relinquishing all the underlying resources
and connections.
|
void |
delete(byte[] key)
Deletes the mapping for the specified
key from this metadata store (if such mapping exists). |
void |
flush()
Flushes the metadata store, if applicable.
|
byte[] |
get(byte[] key)
Gets the value associated with the specified
key . |
void |
init()
Initializes the metadata store, if applicable, setting up the underlying resources
and connections to the store endpoints.
|
void |
put(byte[] key,
byte[] value)
Updates the mapping of the specified key-value pair.
|
void init()
byte[] get(byte[] key)
key
.key
- the key with which the associated value is to be fetched.key
; otherwise, null
.void put(byte[] key, byte[] value)
key
- the key with which the specified value
is to be associated.value
- the value with which the specified key
is to be associated.void delete(byte[] key)
key
from this metadata store (if such mapping exists).key
- the key for which the mapping is to be deleted.java.util.Map<byte[],byte[]> all()
void flush()
void close()