Package org.apache.drill.exec.store.sys
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
Stores and retrieve instances of given value type.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if lookup key is present in store.Returns the value for the given key if exists, null otherwise.getAll()
Returns an iterator of entries.void
Stores the (key, value) tuple in the store.Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.apache.drill.exec.store.sys.Store
delete, getMode, getRange, putIfAbsent
-
Method Details
-
contains
Checks if lookup key is present in store.- Parameters:
key
- lookup key- Returns:
- true if store contains lookup key, false otherwise
-
get
Returns the value for the given key if exists, null otherwise.- Parameters:
key
- lookup key
-
put
Stores the (key, value) tuple in the store. Lifetime of the tuple depends upon storemode
.- Parameters:
key
- lookup keyvalue
- value to store
-
getAll
Returns an iterator of entries.
-