public final class AsyncHBaseExecutor extends Object
HBaseExecutor
.Table
Modifier and Type | Method and Description |
---|---|
com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> |
append(String tableName,
org.apache.hadoop.hbase.client.Append append)
Append.
|
<R extends com.google.protobuf.Message> |
batchCoprocessorService(String tableName,
com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
com.google.protobuf.Message request,
Object startRowKey,
Object endRowKey,
R responsePrototype)
Batch coprocessor service.
|
<R extends com.google.protobuf.Message> |
batchCoprocessorService(String tableName,
com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
com.google.protobuf.Message request,
Object startRowKey,
Object endRowKey,
R responsePrototype,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
Batch coprocessor service.
|
<T extends com.google.protobuf.Service,R> |
coprocessorService(String tableName,
Class<T> service,
Object startRowKey,
Object endRowKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable)
Coprocessor service.
|
<T extends com.google.protobuf.Service,R> |
coprocessorService(String tableName,
Class<T> service,
Object startRowKey,
Object endRowKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
Coprocessor service.
|
com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel> |
coprocessorService(String tableName,
Object rowKey)
Coprocessor service.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
delete(String tableName,
AnyDelete anyDelete)
Delete.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
delete(String tableName,
Collection<AnyDelete> anyDeletes)
Delete.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
delete(String tableName,
org.apache.hadoop.hbase.client.Delete delete)
Delete.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
delete(String tableName,
List<org.apache.hadoop.hbase.client.Delete> deletes)
Delete.
|
com.landawn.abacus.util.ContinuableFuture<Boolean> |
exists(String tableName,
AnyGet anyGet)
Exists.
|
com.landawn.abacus.util.ContinuableFuture<List<Boolean>> |
exists(String tableName,
Collection<AnyGet> anyGets)
Exists.
|
com.landawn.abacus.util.ContinuableFuture<Boolean> |
exists(String tableName,
org.apache.hadoop.hbase.client.Get get)
Exists.
|
com.landawn.abacus.util.ContinuableFuture<List<Boolean>> |
exists(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Exists.
|
com.landawn.abacus.util.ContinuableFuture<List<Boolean>> |
existsAll(String tableName,
Collection<AnyGet> anyGets)
Deprecated.
use
exists(String, Collection) |
com.landawn.abacus.util.ContinuableFuture<List<Boolean>> |
existsAll(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Deprecated.
since 2.0 version and will be removed in 3.0 version.
use
exists(List) |
<T> com.landawn.abacus.util.ContinuableFuture<T> |
get(Class<T> targetClass,
String tableName,
AnyGet anyGet)
Gets the.
|
<T> com.landawn.abacus.util.ContinuableFuture<List<T>> |
get(Class<T> targetClass,
String tableName,
Collection<AnyGet> anyGets)
Gets the.
|
<T> com.landawn.abacus.util.ContinuableFuture<T> |
get(Class<T> targetClass,
String tableName,
org.apache.hadoop.hbase.client.Get get)
Gets the.
|
<T> com.landawn.abacus.util.ContinuableFuture<List<T>> |
get(Class<T> targetClass,
String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Gets the.
|
com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
AnyGet anyGet)
Gets the.
|
com.landawn.abacus.util.ContinuableFuture<List<org.apache.hadoop.hbase.client.Result>> |
get(String tableName,
Collection<AnyGet> anyGets)
Gets the.
|
com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
org.apache.hadoop.hbase.client.Get get)
Gets the.
|
com.landawn.abacus.util.ContinuableFuture<List<org.apache.hadoop.hbase.client.Result>> |
get(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Gets the.
|
com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> |
increment(String tableName,
org.apache.hadoop.hbase.client.Increment increment)
Increment.
|
com.landawn.abacus.util.ContinuableFuture<Long> |
incrementColumnValue(String tableName,
Object rowKey,
byte[] family,
byte[] qualifier,
long amount)
Increment column value.
|
com.landawn.abacus.util.ContinuableFuture<Long> |
incrementColumnValue(String tableName,
Object rowKey,
byte[] family,
byte[] qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability)
Increment column value.
|
com.landawn.abacus.util.ContinuableFuture<Long> |
incrementColumnValue(String tableName,
Object rowKey,
String family,
String qualifier,
long amount)
Increment column value.
|
com.landawn.abacus.util.ContinuableFuture<Long> |
incrementColumnValue(String tableName,
Object rowKey,
String family,
String qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability)
Increment column value.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
mutateRow(String tableName,
org.apache.hadoop.hbase.client.RowMutations rm)
Mutate row.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
put(String tableName,
AnyPut anyPut)
Put.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
put(String tableName,
Collection<AnyPut> anyPuts)
Put.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
put(String tableName,
List<org.apache.hadoop.hbase.client.Put> puts)
Put.
|
com.landawn.abacus.util.ContinuableFuture<Void> |
put(String tableName,
org.apache.hadoop.hbase.client.Put put)
Put.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
AnyScan anyScan)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
byte[] family)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
byte[] family,
byte[] qualifier)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
org.apache.hadoop.hbase.client.Scan scan)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
String family)
Scan.
|
<T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> |
scan(Class<T> targetClass,
String tableName,
String family,
String qualifier)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
AnyScan anyScan)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
byte[] family)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
byte[] family,
byte[] qualifier)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
org.apache.hadoop.hbase.client.Scan scan)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
String family)
Scan.
|
com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> |
scan(String tableName,
String family,
String qualifier)
Scan.
|
HBaseExecutor |
sync()
Sync.
|
public HBaseExecutor sync()
public com.landawn.abacus.util.ContinuableFuture<Boolean> exists(String tableName, org.apache.hadoop.hbase.client.Get get)
tableName
- the table nameget
- the getpublic com.landawn.abacus.util.ContinuableFuture<List<Boolean>> exists(String tableName, List<org.apache.hadoop.hbase.client.Get> gets)
tableName
- the table namegets
- the gets@Deprecated public com.landawn.abacus.util.ContinuableFuture<List<Boolean>> existsAll(String tableName, List<org.apache.hadoop.hbase.client.Get> gets)
exists(List)
tableName
- the table namegets
- the Getspublic com.landawn.abacus.util.ContinuableFuture<Boolean> exists(String tableName, AnyGet anyGet)
tableName
- the table nameanyGet
- the any getpublic com.landawn.abacus.util.ContinuableFuture<List<Boolean>> exists(String tableName, Collection<AnyGet> anyGets)
tableName
- the table nameanyGets
- the any gets@Deprecated public com.landawn.abacus.util.ContinuableFuture<List<Boolean>> existsAll(String tableName, Collection<AnyGet> anyGets)
exists(String, Collection)
tableName
- the table nameanyGets
- the any getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> get(String tableName, org.apache.hadoop.hbase.client.Get get)
tableName
- the table nameget
- the getpublic com.landawn.abacus.util.ContinuableFuture<List<org.apache.hadoop.hbase.client.Result>> get(String tableName, List<org.apache.hadoop.hbase.client.Get> gets)
tableName
- the table namegets
- the getspublic com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> get(String tableName, AnyGet anyGet)
tableName
- the table nameanyGet
- the any getpublic com.landawn.abacus.util.ContinuableFuture<List<org.apache.hadoop.hbase.client.Result>> get(String tableName, Collection<AnyGet> anyGets)
tableName
- the table nameanyGets
- the any getspublic <T> com.landawn.abacus.util.ContinuableFuture<T> get(Class<T> targetClass, String tableName, org.apache.hadoop.hbase.client.Get get)
T
- the generic typetargetClass
- the target classtableName
- the table nameget
- the getpublic <T> com.landawn.abacus.util.ContinuableFuture<List<T>> get(Class<T> targetClass, String tableName, List<org.apache.hadoop.hbase.client.Get> gets)
T
- the generic typetargetClass
- the target classtableName
- the table namegets
- the getspublic <T> com.landawn.abacus.util.ContinuableFuture<T> get(Class<T> targetClass, String tableName, AnyGet anyGet)
T
- the generic typetargetClass
- the target classtableName
- the table nameanyGet
- the any getpublic <T> com.landawn.abacus.util.ContinuableFuture<List<T>> get(Class<T> targetClass, String tableName, Collection<AnyGet> anyGets)
T
- the generic typetargetClass
- the target classtableName
- the table nameanyGets
- the any getspublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, org.apache.hadoop.hbase.client.Scan scan)
tableName
- the table namescan
- the scanpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, AnyScan anyScan)
tableName
- the table nameanyScan
- the any scanpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, String family)
tableName
- the table namefamily
- the familypublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, String family, String qualifier)
tableName
- the table namefamily
- the familyqualifier
- the qualifierpublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, byte[] family)
tableName
- the table namefamily
- the familypublic com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result>> scan(String tableName, byte[] family, byte[] qualifier)
tableName
- the table namefamily
- the familyqualifier
- the qualifierpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, org.apache.hadoop.hbase.client.Scan scan)
T
- the generic typetargetClass
- the target classtableName
- the table namescan
- the scanpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, AnyScan anyScan)
T
- the generic typetargetClass
- the target classtableName
- the table nameanyScan
- the any scanpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, String family)
T
- the generic typetargetClass
- the target classtableName
- the table namefamily
- the familypublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, String family, String qualifier)
T
- the generic typetargetClass
- the target classtableName
- the table namefamily
- the familyqualifier
- the qualifierpublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, byte[] family)
T
- the generic typetargetClass
- the target classtableName
- the table namefamily
- the familypublic <T> com.landawn.abacus.util.ContinuableFuture<com.landawn.abacus.util.stream.Stream<T>> scan(Class<T> targetClass, String tableName, byte[] family, byte[] qualifier)
T
- the generic typetargetClass
- the target classtableName
- the table namefamily
- the familyqualifier
- the qualifierpublic com.landawn.abacus.util.ContinuableFuture<Void> put(String tableName, org.apache.hadoop.hbase.client.Put put)
tableName
- the table nameput
- the putpublic com.landawn.abacus.util.ContinuableFuture<Void> put(String tableName, List<org.apache.hadoop.hbase.client.Put> puts)
tableName
- the table nameputs
- the putspublic com.landawn.abacus.util.ContinuableFuture<Void> put(String tableName, AnyPut anyPut)
tableName
- the table nameanyPut
- the any putpublic com.landawn.abacus.util.ContinuableFuture<Void> put(String tableName, Collection<AnyPut> anyPuts)
tableName
- the table nameanyPuts
- the any putspublic com.landawn.abacus.util.ContinuableFuture<Void> delete(String tableName, org.apache.hadoop.hbase.client.Delete delete)
tableName
- the table namedelete
- the deletepublic com.landawn.abacus.util.ContinuableFuture<Void> delete(String tableName, List<org.apache.hadoop.hbase.client.Delete> deletes)
tableName
- the table namedeletes
- the deletespublic com.landawn.abacus.util.ContinuableFuture<Void> delete(String tableName, AnyDelete anyDelete)
tableName
- the table nameanyDelete
- the any deletepublic com.landawn.abacus.util.ContinuableFuture<Void> delete(String tableName, Collection<AnyDelete> anyDeletes)
tableName
- the table nameanyDeletes
- the any deletespublic com.landawn.abacus.util.ContinuableFuture<Void> mutateRow(String tableName, org.apache.hadoop.hbase.client.RowMutations rm)
tableName
- the table namerm
- the rmpublic com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> append(String tableName, org.apache.hadoop.hbase.client.Append append)
tableName
- the table nameappend
- the appendpublic com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.client.Result> increment(String tableName, org.apache.hadoop.hbase.client.Increment increment)
tableName
- the table nameincrement
- the incrementpublic com.landawn.abacus.util.ContinuableFuture<Long> incrementColumnValue(String tableName, Object rowKey, String family, String qualifier, long amount)
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountpublic com.landawn.abacus.util.ContinuableFuture<Long> incrementColumnValue(String tableName, Object rowKey, String family, String qualifier, long amount, org.apache.hadoop.hbase.client.Durability durability)
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountdurability
- the durabilitypublic com.landawn.abacus.util.ContinuableFuture<Long> incrementColumnValue(String tableName, Object rowKey, byte[] family, byte[] qualifier, long amount)
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountpublic com.landawn.abacus.util.ContinuableFuture<Long> incrementColumnValue(String tableName, Object rowKey, byte[] family, byte[] qualifier, long amount, org.apache.hadoop.hbase.client.Durability durability)
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountdurability
- the durabilitypublic com.landawn.abacus.util.ContinuableFuture<org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel> coprocessorService(String tableName, Object rowKey)
tableName
- the table namerowKey
- the row keypublic <T extends com.google.protobuf.Service,R> com.landawn.abacus.util.ContinuableFuture<Map<byte[],R>> coprocessorService(String tableName, Class<T> service, Object startRowKey, Object endRowKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable) throws Exception
T
- the generic typeR
- the generic typetableName
- the table nameservice
- the servicestartRowKey
- the start row keyendRowKey
- the end row keycallable
- the callableException
- the exceptionpublic <T extends com.google.protobuf.Service,R> com.landawn.abacus.util.ContinuableFuture<Void> coprocessorService(String tableName, Class<T> service, Object startRowKey, Object endRowKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws Exception
T
- the generic typeR
- the generic typetableName
- the table nameservice
- the servicestartRowKey
- the start row keyendRowKey
- the end row keycallable
- the callablecallback
- the callbackException
- the exceptionpublic <R extends com.google.protobuf.Message> com.landawn.abacus.util.ContinuableFuture<Map<byte[],R>> batchCoprocessorService(String tableName, com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, com.google.protobuf.Message request, Object startRowKey, Object endRowKey, R responsePrototype) throws Exception
R
- the generic typetableName
- the table namemethodDescriptor
- the method descriptorrequest
- the requeststartRowKey
- the start row keyendRowKey
- the end row keyresponsePrototype
- the response prototypeException
- the exceptionpublic <R extends com.google.protobuf.Message> com.landawn.abacus.util.ContinuableFuture<Void> batchCoprocessorService(String tableName, com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, com.google.protobuf.Message request, Object startRowKey, Object endRowKey, R responsePrototype, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws Exception
R
- the generic typetableName
- the table namemethodDescriptor
- the method descriptorrequest
- the requeststartRowKey
- the start row keyendRowKey
- the end row keyresponsePrototype
- the response prototypecallback
- the callbackException
- the exceptionCopyright © 2019. All rights reserved.