public class HBasePersistentStoreProvider extends BasePersistentStoreProvider
Constructor and Description |
---|
HBasePersistentStoreProvider(org.apache.hadoop.conf.Configuration conf,
String storeTableName) |
HBasePersistentStoreProvider(PersistentStoreRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<V> PersistentStore<V> |
getOrCreateStore(PersistentStoreConfig<V> config)
Gets or creates a
persistent store for the given configuration. |
void |
start()
Sets up the provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrCreateVersionedStore
public HBasePersistentStoreProvider(PersistentStoreRegistry registry)
public HBasePersistentStoreProvider(org.apache.hadoop.conf.Configuration conf, String storeTableName)
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) throws StoreException
PersistentStoreProvider
persistent store
for the given configuration.
Note that implementors have liberty to cache previous store
instances.V
- store value typeconfig
- store configurationStoreException
- in case when unable to create storepublic void start() throws IOException
PersistentStoreProvider
start
in interface PersistentStoreProvider
start
in class BasePersistentStoreProvider
IOException
public void close()
close
in interface AutoCloseable
close
in class BasePersistentStoreProvider
Copyright © 1970 The Apache Software Foundation. All rights reserved.