@InterfaceStability.Evolving public interface MetadataStore
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,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(java.lang.String 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(java.lang.String 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(java.lang.String key,
byte[] value)
Updates the mapping of the specified key-value pair.
|
void init()
byte[] get(java.lang.String key)
key
.key
- the key with which the associated value is to be fetched.key
; otherwise, null
.void put(java.lang.String 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(java.lang.String key)
key
from this metadata store (if such mapping exists).key
- the key for which the mapping is to be deleted.java.util.Map<java.lang.String,byte[]> all()
void flush()
void close()