com.google.cloud.bigtable.hbase2_x
Class BigtableAsyncTable
- java.lang.Object
-
- com.google.cloud.bigtable.hbase2_x.BigtableAsyncTable
-
- All Implemented Interfaces:
- AsyncTable<ScanResultConsumer>
public class BigtableAsyncTable extends Object implements AsyncTable<ScanResultConsumer>
Bigtable implementation ofAsyncTable
.- Author:
- spollapally
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.AsyncTable
AsyncTable.CheckAndMutateBuilder, AsyncTable.CoprocessorCallback<R>, AsyncTable.CoprocessorServiceBuilder<S,R>
-
-
Constructor Summary
Constructors Constructor and Description BigtableAsyncTable(CommonConnection connection, HBaseRequestAdapter hbaseAdapter)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hadoop.hbase.client.AsyncTable
batchAll, deleteAll, existsAll, getAll, getScanner, getScanner, incrementColumnValue, incrementColumnValue, putAll
-
-
-
-
Constructor Detail
-
BigtableAsyncTable
public BigtableAsyncTable(CommonConnection connection, HBaseRequestAdapter hbaseAdapter)
-
-
Method Detail
-
getBatchExecutor
protected BatchExecutor getBatchExecutor()
-
append
public CompletableFuture<Result> append(Append append)
- Specified by:
append
in interfaceAsyncTable<ScanResultConsumer>
-
batch
public <T> List<CompletableFuture<T>> batch(List<? extends Row> actions)
- Specified by:
batch
in interfaceAsyncTable<ScanResultConsumer>
-
checkAndMutate
public AsyncTable.CheckAndMutateBuilder checkAndMutate(byte[] row, byte[] family)
- Specified by:
checkAndMutate
in interfaceAsyncTable<ScanResultConsumer>
-
delete
public CompletableFuture<Void> delete(Delete delete)
- Specified by:
delete
in interfaceAsyncTable<ScanResultConsumer>
-
delete
public List<CompletableFuture<Void>> delete(List<Delete> deletes)
- Specified by:
delete
in interfaceAsyncTable<ScanResultConsumer>
-
get
public CompletableFuture<Result> get(Get get)
- Specified by:
get
in interfaceAsyncTable<ScanResultConsumer>
-
exists
public CompletableFuture<Boolean> exists(Get get)
- Specified by:
exists
in interfaceAsyncTable<ScanResultConsumer>
-
get
public List<CompletableFuture<Result>> get(List<Get> gets)
- Specified by:
get
in interfaceAsyncTable<ScanResultConsumer>
-
exists
public List<CompletableFuture<Boolean>> exists(List<Get> gets)
- Specified by:
exists
in interfaceAsyncTable<ScanResultConsumer>
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
- Specified by:
getConfiguration
in interfaceAsyncTable<ScanResultConsumer>
-
getName
public TableName getName()
- Specified by:
getName
in interfaceAsyncTable<ScanResultConsumer>
-
getOperationTimeout
public long getOperationTimeout(TimeUnit timeUnit)
- Specified by:
getOperationTimeout
in interfaceAsyncTable<ScanResultConsumer>
-
getReadRpcTimeout
public long getReadRpcTimeout(TimeUnit arg0)
- Specified by:
getReadRpcTimeout
in interfaceAsyncTable<ScanResultConsumer>
-
getRpcTimeout
public long getRpcTimeout(TimeUnit arg0)
- Specified by:
getRpcTimeout
in interfaceAsyncTable<ScanResultConsumer>
-
getScanTimeout
public long getScanTimeout(TimeUnit arg0)
- Specified by:
getScanTimeout
in interfaceAsyncTable<ScanResultConsumer>
-
getWriteRpcTimeout
public long getWriteRpcTimeout(TimeUnit arg0)
- Specified by:
getWriteRpcTimeout
in interfaceAsyncTable<ScanResultConsumer>
-
increment
public CompletableFuture<Result> increment(Increment increment)
- Specified by:
increment
in interfaceAsyncTable<ScanResultConsumer>
-
mutateRow
public CompletableFuture<Void> mutateRow(RowMutations rowMutations)
- Specified by:
mutateRow
in interfaceAsyncTable<ScanResultConsumer>
-
put
public CompletableFuture<Void> put(Put put)
- Specified by:
put
in interfaceAsyncTable<ScanResultConsumer>
-
put
public List<CompletableFuture<Void>> put(List<Put> puts)
- Specified by:
put
in interfaceAsyncTable<ScanResultConsumer>
-
scanAll
public CompletableFuture<List<Result>> scanAll(Scan scan)
- Specified by:
scanAll
in interfaceAsyncTable<ScanResultConsumer>
-
getScanner
public ResultScanner getScanner(Scan scan)
- Specified by:
getScanner
in interfaceAsyncTable<ScanResultConsumer>
-
scan
public void scan(Scan scan, ScanResultConsumer consumer)
- Specified by:
scan
in interfaceAsyncTable<ScanResultConsumer>
-
coprocessorService
public CompletableFuture coprocessorService(Function arg0, ServiceCaller arg1, byte[] arg2)
- Specified by:
coprocessorService
in interfaceAsyncTable<ScanResultConsumer>
-
coprocessorService
public AsyncTable.CoprocessorServiceBuilder coprocessorService(Function arg0, ServiceCaller arg1, AsyncTable.CoprocessorCallback arg2)
- Specified by:
coprocessorService
in interfaceAsyncTable<ScanResultConsumer>
-
-