Interface PersistentStore<V>

Type Parameters:
V - value type
All Superinterfaces:
AutoCloseable, Store<V>
All Known Implementing Classes:
BasePersistentStore, CaseInsensitivePersistentStore, HBasePersistentStore, InMemoryStore, LocalPersistentStore, MongoPersistentStore, NoWriteLocalStore, ZookeeperPersistentStore

public interface PersistentStore<V> extends Store<V>
Stores and retrieve instances of given value type.
  • Method Details

    • contains

      boolean contains(String key)
      Checks if lookup key is present in store.
      Parameters:
      key - lookup key
      Returns:
      true if store contains lookup key, false otherwise
    • get

      V get(String key)
      Returns the value for the given key if exists, null otherwise.
      Parameters:
      key - lookup key
    • put

      void put(String key, V value)
      Stores the (key, value) tuple in the store. Lifetime of the tuple depends upon store mode.
      Parameters:
      key - lookup key
      value - value to store
    • getAll

      Returns an iterator of entries.