public class BatchExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected AsyncExecutor |
asyncExecutor |
protected static Logger |
LOG |
static byte[] |
NO_REGION
For callbacks that take a region, this is the region we will use.
|
protected BigtableOptions |
options |
protected HBaseRequestAdapter |
requestAdapter |
protected com.google.common.util.concurrent.ListeningExecutorService |
service |
Constructor and Description |
---|
BatchExecutor(AsyncExecutor asyncExecutor,
BigtableOptions options,
com.google.common.util.concurrent.ListeningExecutorService service,
HBaseRequestAdapter requestAdapter) |
Modifier and Type | Method and Description |
---|---|
Object[] |
batch(List<? extends org.apache.hadoop.hbase.client.Row> actions)
Implementation of
HTable.batch(List) |
void |
batch(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results)
Implementation of
HTable.batch(List, Object[]) |
<R> Object[] |
batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
Implementation of
HTable.batchCallback(List, Batch.Callback) |
<R> void |
batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
Implementation of
HTable.batchCallback(List, Object[], Batch.Callback) |
Boolean[] |
exists(List<org.apache.hadoop.hbase.client.Get> gets)
Implementation of
HTable.exists(List) . |
protected static final Logger LOG
public static final byte[] NO_REGION
protected final AsyncExecutor asyncExecutor
protected final BigtableOptions options
protected final com.google.common.util.concurrent.ListeningExecutorService service
protected final HBaseRequestAdapter requestAdapter
public BatchExecutor(AsyncExecutor asyncExecutor, BigtableOptions options, com.google.common.util.concurrent.ListeningExecutorService service, HBaseRequestAdapter requestAdapter)
public void batch(List<? extends org.apache.hadoop.hbase.client.Row> actions, @Nullable Object[] results) throws IOException, InterruptedException
HTable.batch(List, Object[])
IOException
InterruptedException
public Object[] batch(List<? extends org.apache.hadoop.hbase.client.Row> actions) throws IOException
HTable.batch(List)
IOException
public <R> Object[] batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws IOException, InterruptedException
HTable.batchCallback(List, Batch.Callback)
IOException
InterruptedException
public <R> void batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions, Object[] results, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws IOException, InterruptedException
HTable.batchCallback(List, Object[], Batch.Callback)
IOException
InterruptedException
public Boolean[] exists(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
HTable.exists(List)
.IOException
Copyright © 2015. All rights reserved.