Package org.apache.hadoop.hbase.client
Class DummyAsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
java.lang.Object
org.apache.hadoop.hbase.client.DummyAsyncTable<C>
- All Implemented Interfaces:
org.apache.hadoop.hbase.client.AsyncTable<C>
public class DummyAsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
extends Object
implements org.apache.hadoop.hbase.client.AsyncTable<C>
Can be overridden in UT if you only want to implement part of the methods in
AsyncTable
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.client.AsyncTable
org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateBuilder, org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateWithFilterBuilder, org.apache.hadoop.hbase.client.AsyncTable.CoprocessorCallback<R extends Object>, org.apache.hadoop.hbase.client.AsyncTable.CoprocessorServiceBuilder<S extends Object,
R extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.apache.hadoop.hbase.client.Result>
append
(org.apache.hadoop.hbase.client.Append append) <T> List<CompletableFuture<T>>
org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateBuilder
checkAndMutate
(byte[] row, byte[] family) org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateWithFilterBuilder
checkAndMutate
(byte[] row, org.apache.hadoop.hbase.filter.Filter filter) List<CompletableFuture<org.apache.hadoop.hbase.client.CheckAndMutateResult>>
checkAndMutate
(List<org.apache.hadoop.hbase.client.CheckAndMutate> checkAndMutates) CompletableFuture<org.apache.hadoop.hbase.client.CheckAndMutateResult>
checkAndMutate
(org.apache.hadoop.hbase.client.CheckAndMutate checkAndMutate) <S,
R> CompletableFuture<R> coprocessorService
(Function<com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable, byte[] row) <S,
R> org.apache.hadoop.hbase.client.AsyncTable.CoprocessorServiceBuilder<S, R> coprocessorService
(Function<com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable, org.apache.hadoop.hbase.client.AsyncTable.CoprocessorCallback<R> callback) delete
(org.apache.hadoop.hbase.client.Delete delete) List<CompletableFuture<org.apache.hadoop.hbase.client.Result>>
CompletableFuture<org.apache.hadoop.hbase.client.Result>
get
(org.apache.hadoop.hbase.client.Get get) org.apache.hadoop.conf.Configuration
CompletableFuture<org.apache.hadoop.hbase.client.TableDescriptor>
org.apache.hadoop.hbase.TableName
getName()
long
getOperationTimeout
(TimeUnit unit) long
getReadRpcTimeout
(TimeUnit unit) org.apache.hadoop.hbase.client.AsyncTableRegionLocator
long
getRpcTimeout
(TimeUnit unit) org.apache.hadoop.hbase.client.ResultScanner
getScanner
(org.apache.hadoop.hbase.client.Scan scan) long
getScanTimeout
(TimeUnit unit) long
getWriteRpcTimeout
(TimeUnit unit) CompletableFuture<org.apache.hadoop.hbase.client.Result>
increment
(org.apache.hadoop.hbase.client.Increment increment) CompletableFuture<org.apache.hadoop.hbase.client.Result>
mutateRow
(org.apache.hadoop.hbase.client.RowMutations mutation) put
(org.apache.hadoop.hbase.client.Put put) void
CompletableFuture<List<org.apache.hadoop.hbase.client.Result>>
scanAll
(org.apache.hadoop.hbase.client.Scan scan) 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, checkAndMutateAll, deleteAll, exists, exists, existsAll, getAll, getScanner, getScanner, incrementColumnValue, incrementColumnValue, putAll
-
Constructor Details
-
DummyAsyncTable
public DummyAsyncTable()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getDescriptor
- Specified by:
getDescriptor
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getRegionLocator
- Specified by:
getRegionLocator
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getRpcTimeout
- Specified by:
getRpcTimeout
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getReadRpcTimeout
- Specified by:
getReadRpcTimeout
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getWriteRpcTimeout
- Specified by:
getWriteRpcTimeout
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getOperationTimeout
- Specified by:
getOperationTimeout
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getScanTimeout
- Specified by:
getScanTimeout
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getRequestAttributes
- Specified by:
getRequestAttributes
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
get
public CompletableFuture<org.apache.hadoop.hbase.client.Result> get(org.apache.hadoop.hbase.client.Get get) - Specified by:
get
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
put
- Specified by:
put
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
delete
- Specified by:
delete
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
append
public CompletableFuture<org.apache.hadoop.hbase.client.Result> append(org.apache.hadoop.hbase.client.Append append) - Specified by:
append
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
increment
public CompletableFuture<org.apache.hadoop.hbase.client.Result> increment(org.apache.hadoop.hbase.client.Increment increment) - Specified by:
increment
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
checkAndMutate
public org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateBuilder checkAndMutate(byte[] row, byte[] family) - Specified by:
checkAndMutate
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
checkAndMutate
public org.apache.hadoop.hbase.client.AsyncTable.CheckAndMutateWithFilterBuilder checkAndMutate(byte[] row, org.apache.hadoop.hbase.filter.Filter filter) - Specified by:
checkAndMutate
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
checkAndMutate
public CompletableFuture<org.apache.hadoop.hbase.client.CheckAndMutateResult> checkAndMutate(org.apache.hadoop.hbase.client.CheckAndMutate checkAndMutate) - Specified by:
checkAndMutate
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
checkAndMutate
public List<CompletableFuture<org.apache.hadoop.hbase.client.CheckAndMutateResult>> checkAndMutate(List<org.apache.hadoop.hbase.client.CheckAndMutate> checkAndMutates) - Specified by:
checkAndMutate
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
mutateRow
public CompletableFuture<org.apache.hadoop.hbase.client.Result> mutateRow(org.apache.hadoop.hbase.client.RowMutations mutation) - Specified by:
mutateRow
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
scan
- Specified by:
scan
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
getScanner
public org.apache.hadoop.hbase.client.ResultScanner getScanner(org.apache.hadoop.hbase.client.Scan scan) - Specified by:
getScanner
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
scanAll
public CompletableFuture<List<org.apache.hadoop.hbase.client.Result>> scanAll(org.apache.hadoop.hbase.client.Scan scan) - Specified by:
scanAll
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
get
public List<CompletableFuture<org.apache.hadoop.hbase.client.Result>> get(List<org.apache.hadoop.hbase.client.Get> gets) - Specified by:
get
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
put
- Specified by:
put
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
delete
- Specified by:
delete
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
batch
public <T> List<CompletableFuture<T>> batch(List<? extends org.apache.hadoop.hbase.client.Row> actions) - Specified by:
batch
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
coprocessorService
public <S,R> CompletableFuture<R> coprocessorService(Function<com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable, byte[] row) - Specified by:
coprocessorService
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-
coprocessorService
public <S,R> org.apache.hadoop.hbase.client.AsyncTable.CoprocessorServiceBuilder<S,R> coprocessorService(Function<com.google.protobuf.RpcChannel, S> stubMaker, org.apache.hadoop.hbase.client.ServiceCaller<S, R> callable, org.apache.hadoop.hbase.client.AsyncTable.CoprocessorCallback<R> callback) - Specified by:
coprocessorService
in interfaceorg.apache.hadoop.hbase.client.AsyncTable<C extends org.apache.hadoop.hbase.client.ScanResultConsumerBase>
-