Class HBasePersistentStoreProvider
java.lang.Object
org.apache.drill.exec.store.sys.store.provider.BasePersistentStoreProvider
org.apache.drill.exec.store.hbase.config.HBasePersistentStoreProvider
- All Implemented Interfaces:
AutoCloseable
,PersistentStoreProvider
- Direct Known Subclasses:
HBasePStoreProvider
-
Constructor Summary
ConstructorDescriptionHBasePersistentStoreProvider
(org.apache.hadoop.conf.Configuration conf, String storeTableName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<V> PersistentStore<V>
getOrCreateStore
(PersistentStoreConfig<V> config) Gets or creates apersistent store
for the given configuration.void
start()
Sets up the provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.store.sys.PersistentStoreProvider
getOrCreateVersionedStore
-
Constructor Details
-
HBasePersistentStoreProvider
-
HBasePersistentStoreProvider
public HBasePersistentStoreProvider(org.apache.hadoop.conf.Configuration conf, String storeTableName)
-
-
Method Details
-
getOrCreateStore
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) throws StoreException Description copied from interface:PersistentStoreProvider
Gets or creates apersistent store
for the given configuration. Note that implementors have liberty to cache previousstore
instances.- Type Parameters:
V
- store value type- Parameters:
config
- store configuration- Returns:
- persistent store instance
- Throws:
StoreException
- in case when unable to create store
-
start
Description copied from interface:PersistentStoreProvider
Sets up the provider.- Specified by:
start
in interfacePersistentStoreProvider
- Overrides:
start
in classBasePersistentStoreProvider
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classBasePersistentStoreProvider
-