public class FilePerKeyBasedKeyMarshallableValueStore<K,V extends net.openhft.chronicle.wire.Marshallable> extends Object implements KeyValueStore<K,V,V>
KeyValueStore.Entry<K,V>| Constructor and Description |
|---|
FilePerKeyBasedKeyMarshallableValueStore(FilePerKeyValueStore kvStore,
java.util.function.Function<K,String> keyToString,
java.util.function.Function<String,K> stringToKey,
java.util.function.Supplier<V> createValue) |
| 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 FilePerKeyBasedKeyMarshallableValueStore(FilePerKeyValueStore kvStore, java.util.function.Function<K,String> keyToString, java.util.function.Function<String,K> stringToKey, java.util.function.Supplier<V> createValue)
@Nullable public V getAndPut(K key, V value)
getAndPut in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>@Nullable public V getAndRemove(K key)
getAndRemove in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>@Nullable public V getUsing(K key, V value)
getUsing in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public long longSize()
longSize in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public void keysFor(int segment,
SubscriptionConsumer<K> kConsumer)
throws InvalidSubscriberException
keysFor in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>InvalidSubscriberExceptionpublic void entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer)
throws InvalidSubscriberException
entriesFor in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>InvalidSubscriberExceptionpublic void clear()
clear in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public boolean containsValue(V value)
containsValue in interface KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public Asset asset()
@Nullable public KeyValueStore<K,V,V> underlying()
underlying in interface Assetted<KeyValueStore<K,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>>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.