Class HBasePersistentStore<V>
java.lang.Object
org.apache.drill.exec.store.sys.BasePersistentStore<V>
org.apache.drill.exec.store.hbase.config.HBasePersistentStore<V>
- All Implemented Interfaces:
AutoCloseable
,PersistentStore<V>
,Store<V>
-
Constructor Summary
ConstructorDescriptionHBasePersistentStore
(PersistentStoreConfig<V> config, org.apache.hadoop.hbase.client.Table table) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
Checks if lookup key is present in store.void
Removes the value corresponding to the given key if exists, nothing happens otherwise.Returns the value for the given key if exists, null otherwise.protected V
getMode()
Returns storagemode
of this store.getRange
(int skip, int take) Returns an iterator of desired number of entries offsetting by the skip value.protected void
void
Stores the (key, value) tuple in the store.boolean
putIfAbsent
(String key, V value) Stores the (key, value) tuple in the store only if it does not exists.Methods inherited from class org.apache.drill.exec.store.sys.BasePersistentStore
getAll
-
Constructor Details
-
HBasePersistentStore
public HBasePersistentStore(PersistentStoreConfig<V> config, org.apache.hadoop.hbase.client.Table table)
-
-
Method Details
-
getMode
Description copied from interface:Store
Returns storagemode
of this store. -
contains
Description copied from interface:PersistentStore
Checks if lookup key is present in store.- Parameters:
key
- lookup key- Returns:
- true if store contains lookup key, false otherwise
-
get
Description copied from interface:PersistentStore
Returns the value for the given key if exists, null otherwise.- Parameters:
key
- lookup key
-
get
-
put
Description copied from interface:PersistentStore
Stores the (key, value) tuple in the store. Lifetime of the tuple depends upon storemode
.- Parameters:
key
- lookup keyvalue
- value to store
-
put
-
putIfAbsent
Description copied from interface:Store
Stores the (key, value) tuple in the store only if it does not exists.- Parameters:
key
- lookup keyvalue
- value to store- Returns:
- true if put takes place, false otherwise.
-
delete
Description copied from interface:Store
Removes the value corresponding to the given key if exists, nothing happens otherwise.- Parameters:
key
- lookup key
-
getRange
Description copied from interface:Store
Returns an iterator of desired number of entries offsetting by the skip value.- Parameters:
skip
- number of records to skip from beginningtake
- max number of records to return
-
close
public void close()
-