public class InMemoryMetadataStore extends java.lang.Object implements MetadataStore
MetadataStore with no persistence on disk.| Constructor and Description | 
|---|
| InMemoryMetadataStore() | 
| 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  keyfrom 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. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputAllpublic void init()
MetadataStoreinit in interface MetadataStorepublic byte[] get(java.lang.String key)
MetadataStorekey.get in interface MetadataStorekey - the key with which the associated value is to be fetched.key; otherwise, null.public void put(java.lang.String key,
                byte[] value)
MetadataStoreput in interface MetadataStorekey - the key with which the specified value is to be associated.value - the value with which the specified key is to be associated.public void delete(java.lang.String key)
MetadataStorekey from this metadata store (if such mapping exists).delete in interface MetadataStorekey - the key for which the mapping is to be deleted.public java.util.Map<java.lang.String,byte[]> all()
MetadataStoreall in interface MetadataStorepublic void flush()
MetadataStoreflush in interface MetadataStorepublic void close()
MetadataStoreclose in interface MetadataStore