|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.MultiHConnection
@InterfaceAudience.Private public class MultiHConnection
Provides ability to create multiple HConnection instances and allows to process a batch of actions using HConnection.processBatchCallback()
Constructor Summary | |
---|---|
MultiHConnection(org.apache.hadoop.conf.Configuration conf,
int noOfConnections)
Create multiple HConnection instances and initialize a thread pool executor |
Method Summary | ||
---|---|---|
void |
close()
Close the open connections and shutdown the batchpool |
|
|
processBatchCallback(List<? extends Row> actions,
TableName tableName,
Object[] results,
Batch.Callback<R> callback)
Randomly pick a connection and process the batch of actions for a given table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiHConnection(org.apache.hadoop.conf.Configuration conf, int noOfConnections) throws IOException
conf
- configurationnoOfConnections
- total no of HConnections to create
IOException
Method Detail |
---|
public void close()
public <R> void processBatchCallback(List<? extends Row> actions, TableName tableName, Object[] results, Batch.Callback<R> callback) throws IOException
actions
- the actionstableName
- table nameresults
- the results arraycallback
-
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |