public class FilePerKeyValueStoreBackedKeyValueStore<K,V> extends Object implements KeyValueStore<K,V,V>
KeyValueStore.Entry<K,V>| Constructor and Description |
|---|
FilePerKeyValueStoreBackedKeyValueStore(FilePerKeyValueStore filePerKeyValueStore,
java.util.function.Function<K,String> keyToString,
java.util.function.Function<V,net.openhft.chronicle.bytes.BytesStore> valueToBytesStore,
java.util.function.Function<net.openhft.chronicle.bytes.BytesStore,V> bytesStoreToValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(EngineReplication.ReplicationEntry replicationEntry) |
Asset |
asset() |
void |
clear() |
void |
close() |
boolean |
containsValue(V value) |
void |
entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getUsing(K key,
V value) |
void |
keysFor(int segment,
SubscriptionConsumer<K> kConsumer) |
long |
longSize() |
KeyValueStore<K,V,V> |
underlying() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsKey, entrySetIterator, get, isKeyType, isReadOnly, keyedView, keySetIterator, put, putIfAbsent, remove, removeIfEqual, replace, replaceIfEqual, segmentFor, segments, valuesIteratorandThenpublic FilePerKeyValueStoreBackedKeyValueStore(FilePerKeyValueStore filePerKeyValueStore, java.util.function.Function<K,String> keyToString, java.util.function.Function<V,net.openhft.chronicle.bytes.BytesStore> valueToBytesStore, java.util.function.Function<net.openhft.chronicle.bytes.BytesStore,V> bytesStoreToValue)
@Nullable public V getAndPut(K key, V value)
getAndPut in interface KeyValueStore<K,V,V>@Nullable public V getAndRemove(K key)
getAndRemove in interface KeyValueStore<K,V,V>@Nullable public V getUsing(K key, V value)
getUsing in interface KeyValueStore<K,V,V>public long longSize()
longSize in interface KeyValueStore<K,V,V>public void keysFor(int segment,
SubscriptionConsumer<K> kConsumer)
throws InvalidSubscriberException
keysFor in interface KeyValueStore<K,V,V>InvalidSubscriberExceptionpublic void entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer)
throws InvalidSubscriberException
entriesFor in interface KeyValueStore<K,V,V>InvalidSubscriberExceptionpublic void clear()
clear in interface KeyValueStore<K,V,V>public boolean containsValue(V value)
containsValue in interface KeyValueStore<K,V,V>public Asset asset()
@Nullable public KeyValueStore<K,V,V> underlying()
underlying in interface Assetted<KeyValueStore<K,V,V>>public void close()
close in interface Closeableclose in interface AutoCloseablepublic void accept(EngineReplication.ReplicationEntry replicationEntry)
accept in interface java.util.function.Consumer<EngineReplication.ReplicationEntry>Copyright © 2015. All rights reserved.