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
ConstructorsConstructorDescriptionHBasePersistentStoreProvider(org.apache.hadoop.conf.Configuration conf, String storeTableName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) Gets or creates apersistent storefor the given configuration.voidstart()Sets up the provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PersistentStoreProviderGets or creates apersistent storefor the given configuration. Note that implementors have liberty to cache previousstoreinstances.- 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:PersistentStoreProviderSets up the provider.- Specified by:
startin interfacePersistentStoreProvider- Overrides:
startin classBasePersistentStoreProvider- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classBasePersistentStoreProvider
-