Interface KeyValueStore<K,V>
- Type Parameters:
K- key typeV- value type
public interface KeyValueStore<K,V>
Key value store implemented by in-memory cache backed with data from a potentially partitioned
source like a Kafka topic. Status must be tracked separately for each partition by the implementation
of this store.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets local error for the store with the specified error message.Returns the current value associated with key if it exists or null otherwise.Updates the entry for key with the specified value.Removes the entry corresponding to the key if it is present in the store.status(int partition) Status of the metadata store for the specified partition
-
Method Details
-
get
-
put
-
remove
-
map
-
fail
Sets local error for the store with the specified error message. This is invoked if the reader encountered a fatal error. -
status
Status of the metadata store for the specified partition
-