public class BinaryVersionedStore extends Object implements KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>
| Constructor and Description |
|---|
BinaryVersionedStore(VersionedStorageProvider baseVersionedStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
get(String key) |
boolean |
isClosed() |
boolean |
isOpen() |
VersionedEntry<String,byte[]> |
load(String key) |
LoadedEntry<String,byte[]> |
load(String key,
long version) |
KeyValueIterable<String,VersionedEntry<String,byte[]>> |
loadAll()
Load All Values.
|
Map<String,VersionedEntry<String,byte[]>> |
loadAllByKeys(Collection<String> keys) |
Collection<String> |
loadAllKeys()
Load All keys.
|
UpdateStatus |
put(String key,
long version,
byte[] value) |
UpdateStatus |
put(String key,
long version,
long updatedTime,
byte[] value) |
void |
put(String key,
VersionedEntry<String,byte[]> value)
Put a key
|
UpdateStatus |
put(VersionKey key,
byte[] value) |
Collection<UpdateStatus> |
putAll(List<VersionedKeyValuePut<byte[]>> list) |
void |
putAll(Map<String,VersionedEntry<String,byte[]>> values)
Put all values.
|
void |
remove(String key)
Remove a single key.
|
void |
removeAll(Iterable<String> keys)
Remove all values
|
KeyValueIterable<String,VersionedEntry<String,byte[]>> |
search(String startKey)
Search.
|
void |
set(String key,
byte[] value) |
public BinaryVersionedStore(VersionedStorageProvider baseVersionedStorage)
public void put(String key, VersionedEntry<String,byte[]> value)
KeyValueStoreput in interface KeyValueStore<String,VersionedEntry<String,byte[]>>key - keyvalue - valuepublic void putAll(Map<String,VersionedEntry<String,byte[]>> values)
KeyValueStoreputAll in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public void removeAll(Iterable<String> keys)
KeyValueStoreremoveAll in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public void remove(String key)
KeyValueStoreremove in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public KeyValueIterable<String,VersionedEntry<String,byte[]>> search(String startKey)
KeyValueStoresearch in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public KeyValueIterable<String,VersionedEntry<String,byte[]>> loadAll()
KeyValueStoreloadAll in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public Collection<String> loadAllKeys()
KeyValueStoreloadAllKeys in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public VersionedEntry<String,byte[]> load(String key)
load in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public Map<String,VersionedEntry<String,byte[]>> loadAllByKeys(Collection<String> keys)
loadAllByKeys in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public boolean isOpen()
isOpen in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public boolean isClosed()
isClosed in interface KeyValueStore<String,VersionedEntry<String,byte[]>>public LoadedEntry<String,byte[]> load(String key, long version)
load in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public UpdateStatus put(String key, long version, byte[] value)
put in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public void set(String key, byte[] value)
set in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public byte[] get(String key)
get in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public UpdateStatus put(String key, long version, long updatedTime, byte[] value)
put in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public UpdateStatus put(VersionKey key, byte[] value)
put in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>public Collection<UpdateStatus> putAll(List<VersionedKeyValuePut<byte[]>> list)
putAll in interface KeyValueStoreWithVersion<String,byte[],VersionedEntry<String,byte[]>>Copyright © 2014. All Rights Reserved.