public final class HBaseExecutor extends Object implements Closeable
Constructor and Description |
---|
HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn)
Instantiates a new h base executor.
|
HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn,
com.landawn.abacus.util.AsyncExecutor asyncExecutor)
Instantiates a new h base executor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.client.Admin |
admin()
Admin.
|
org.apache.hadoop.hbase.client.Result |
append(String tableName,
org.apache.hadoop.hbase.client.Append append)
Append.
|
AsyncHBaseExecutor |
async()
Async.
|
<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.
|
void |
close()
Close.
|
org.apache.hadoop.hbase.client.Connection |
connection()
Connection.
|
<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.
|
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService(String tableName,
Object rowKey)
Coprocessor service.
|
void |
delete(String tableName,
AnyDelete anyDelete)
Delete.
|
void |
delete(String tableName,
Collection<AnyDelete> anyDeletes)
Delete.
|
void |
delete(String tableName,
org.apache.hadoop.hbase.client.Delete delete)
Delete.
|
void |
delete(String tableName,
List<org.apache.hadoop.hbase.client.Delete> deletes)
Delete.
|
boolean |
exists(String tableName,
AnyGet anyGet)
Exists.
|
List<Boolean> |
exists(String tableName,
Collection<AnyGet> anyGets)
Exists.
|
boolean |
exists(String tableName,
org.apache.hadoop.hbase.client.Get get)
Exists.
|
List<Boolean> |
exists(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Exists.
|
List<Boolean> |
existsAll(String tableName,
Collection<AnyGet> anyGets)
Deprecated.
use
exists(String, Collection) |
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> T |
get(Class<T> targetClass,
String tableName,
AnyGet anyGet)
Gets the.
|
<T> List<T> |
get(Class<T> targetClass,
String tableName,
Collection<AnyGet> anyGets)
Gets the.
|
<T> T |
get(Class<T> targetClass,
String tableName,
org.apache.hadoop.hbase.client.Get get)
Gets the.
|
<T> List<T> |
get(Class<T> targetClass,
String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Gets the.
|
org.apache.hadoop.hbase.client.Result |
get(String tableName,
AnyGet anyGet)
Gets the.
|
List<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
Collection<AnyGet> anyGets)
Gets the.
|
org.apache.hadoop.hbase.client.Result |
get(String tableName,
org.apache.hadoop.hbase.client.Get get)
Gets the.
|
List<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets)
Gets the.
|
org.apache.hadoop.hbase.client.Table |
getTable(String tableName)
Gets the table.
|
org.apache.hadoop.hbase.client.Result |
increment(String tableName,
org.apache.hadoop.hbase.client.Increment increment)
Increment.
|
long |
incrementColumnValue(String tableName,
Object rowKey,
byte[] family,
byte[] qualifier,
long amount)
Increment column value.
|
long |
incrementColumnValue(String tableName,
Object rowKey,
byte[] family,
byte[] qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability)
Increment column value.
|
long |
incrementColumnValue(String tableName,
Object rowKey,
String family,
String qualifier,
long amount)
Increment column value.
|
long |
incrementColumnValue(String tableName,
Object rowKey,
String family,
String qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability)
Increment column value.
|
void |
mutateRow(String tableName,
org.apache.hadoop.hbase.client.RowMutations rm)
Mutate row.
|
void |
put(String tableName,
AnyPut anyPut)
Put.
|
void |
put(String tableName,
Collection<AnyPut> anyPuts)
Put.
|
void |
put(String tableName,
List<org.apache.hadoop.hbase.client.Put> puts)
Put.
|
void |
put(String tableName,
org.apache.hadoop.hbase.client.Put put)
Put.
|
static void |
registerRowKeyProperty(Class<?> cls,
String rowKeyPropertyName)
The row key property will be read from/write to the specified property.
|
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
AnyScan anyScan)
Scan.
|
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
byte[] family)
Scan.
|
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
byte[] family,
byte[] qualifier)
Scan.
|
<T> 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.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
String family)
Scan.
|
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
String family,
String qualifier)
Scan.
|
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
AnyScan anyScan)
Scan.
|
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
byte[] family)
Scan.
|
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
byte[] family,
byte[] qualifier)
Scan.
|
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.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
String family)
Scan.
|
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
String family,
String qualifier)
Scan.
|
static List<AnyPut> |
toAnyPut(Collection<?> objs)
To any put.
|
static List<AnyPut> |
toAnyPut(Collection<?> objs,
com.landawn.abacus.util.NamingPolicy namingPolicy)
To any put.
|
static AnyPut |
toAnyPut(Object obj) |
static AnyPut |
toAnyPut(Object obj,
com.landawn.abacus.util.NamingPolicy namingPolicy)
To any put.
|
static List<org.apache.hadoop.hbase.client.Delete> |
toDelete(Collection<AnyDelete> anyDeletes)
To delete.
|
static <T> T |
toEntity(Class<T> targetClass,
org.apache.hadoop.hbase.client.Result result)
To entity.
|
static List<org.apache.hadoop.hbase.client.Get> |
toGet(Collection<AnyGet> anyGets)
To get.
|
static <T> List<T> |
toList(Class<T> targetClass,
org.apache.hadoop.hbase.client.ResultScanner resultScanner)
To list.
|
static <T> List<T> |
toList(Class<T> targetClass,
org.apache.hadoop.hbase.client.ResultScanner resultScanner,
int offset,
int count)
To list.
|
static List<org.apache.hadoop.hbase.client.Put> |
toPut(Collection<?> objs)
To put.
|
static List<org.apache.hadoop.hbase.client.Put> |
toPut(Collection<?> objs,
com.landawn.abacus.util.NamingPolicy namingPolicy)
To put.
|
public HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn)
conn
- the connpublic HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn, com.landawn.abacus.util.AsyncExecutor asyncExecutor)
conn
- the connasyncExecutor
- the async executorpublic org.apache.hadoop.hbase.client.Admin admin()
public org.apache.hadoop.hbase.client.Connection connection()
public AsyncHBaseExecutor async()
public static void registerRowKeyProperty(Class<?> cls, String rowKeyPropertyName)
cls
- entity classes with getter/setter methodsrowKeyPropertyName
- the row key property namepublic static <T> List<T> toList(Class<T> targetClass, org.apache.hadoop.hbase.client.ResultScanner resultScanner)
T
- the generic typetargetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)resultScanner
- the result scannerpublic static <T> List<T> toList(Class<T> targetClass, org.apache.hadoop.hbase.client.ResultScanner resultScanner, int offset, int count)
T
- the generic typetargetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)resultScanner
- the result scanneroffset
- the offsetcount
- the countpublic static <T> T toEntity(Class<T> targetClass, org.apache.hadoop.hbase.client.Result result)
T
- the generic typetargetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)result
- the resultpublic static AnyPut toAnyPut(Object obj)
obj
- entity with getter/setter methodspublic static AnyPut toAnyPut(Object obj, com.landawn.abacus.util.NamingPolicy namingPolicy)
obj
- entity with getter/setter methodsnamingPolicy
- the naming policypublic static List<AnyPut> toAnyPut(Collection<?> objs)
objs
- AnyPut
or entity with getter/setter methodspublic static List<AnyPut> toAnyPut(Collection<?> objs, com.landawn.abacus.util.NamingPolicy namingPolicy)
objs
- AnyPut
or entity with getter/setter methodsnamingPolicy
- the naming policypublic static List<org.apache.hadoop.hbase.client.Put> toPut(Collection<?> objs)
objs
- AnyPut
or entity with getter/setter methodspublic static List<org.apache.hadoop.hbase.client.Put> toPut(Collection<?> objs, com.landawn.abacus.util.NamingPolicy namingPolicy)
objs
- AnyPut
or entity with getter/setter methodsnamingPolicy
- the naming policypublic static List<org.apache.hadoop.hbase.client.Get> toGet(Collection<AnyGet> anyGets)
anyGets
- the any getspublic static List<org.apache.hadoop.hbase.client.Delete> toDelete(Collection<AnyDelete> anyDeletes)
anyDeletes
- the any deletespublic org.apache.hadoop.hbase.client.Table getTable(String tableName) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namecom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic boolean exists(String tableName, org.apache.hadoop.hbase.client.Get get) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameget
- the getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic List<Boolean> exists(String tableName, List<org.apache.hadoop.hbase.client.Get> gets) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namegets
- the getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exception@Deprecated public List<Boolean> existsAll(String tableName, List<org.apache.hadoop.hbase.client.Get> gets) throws com.landawn.abacus.exception.UncheckedIOException
exists(List)
tableName
- the table namegets
- the Getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic boolean exists(String tableName, AnyGet anyGet) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyGet
- the any getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic List<Boolean> exists(String tableName, Collection<AnyGet> anyGets) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyGets
- the any getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exception@Deprecated public List<Boolean> existsAll(String tableName, Collection<AnyGet> anyGets) throws com.landawn.abacus.exception.UncheckedIOException
exists(String, Collection)
tableName
- the table nameanyGets
- the any getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result get(String tableName, org.apache.hadoop.hbase.client.Get get) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameget
- the getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic List<org.apache.hadoop.hbase.client.Result> get(String tableName, List<org.apache.hadoop.hbase.client.Get> gets) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namegets
- the getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result get(String tableName, AnyGet anyGet) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyGet
- the any getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic List<org.apache.hadoop.hbase.client.Result> get(String tableName, Collection<AnyGet> anyGets) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyGets
- the any getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic <T> T get(Class<T> targetClass, String tableName, org.apache.hadoop.hbase.client.Get get) throws com.landawn.abacus.exception.UncheckedIOException
T
- the generic typetargetClass
- the target classtableName
- the table nameget
- the getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic <T> List<T> get(Class<T> targetClass, String tableName, List<org.apache.hadoop.hbase.client.Get> gets) throws com.landawn.abacus.exception.UncheckedIOException
T
- the generic typetargetClass
- the target classtableName
- the table namegets
- the getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic <T> T get(Class<T> targetClass, String tableName, AnyGet anyGet) throws com.landawn.abacus.exception.UncheckedIOException
T
- the generic typetargetClass
- the target classtableName
- the table nameanyGet
- the any getcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic <T> List<T> get(Class<T> targetClass, String tableName, Collection<AnyGet> anyGets) throws com.landawn.abacus.exception.UncheckedIOException
T
- the generic typetargetClass
- the target classtableName
- the table nameanyGets
- the any getscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic 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.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, AnyScan anyScan)
tableName
- the table nameanyScan
- the any scanpublic 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.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.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, byte[] family)
tableName
- the table namefamily
- the familypublic 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.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.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.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.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.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.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 void put(String tableName, org.apache.hadoop.hbase.client.Put put) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameput
- the putcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void put(String tableName, List<org.apache.hadoop.hbase.client.Put> puts) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameputs
- the putscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void put(String tableName, AnyPut anyPut) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyPut
- the any putcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void put(String tableName, Collection<AnyPut> anyPuts) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyPuts
- the any putscom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, org.apache.hadoop.hbase.client.Delete delete) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namedelete
- the deletecom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, List<org.apache.hadoop.hbase.client.Delete> deletes) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namedeletes
- the deletescom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, AnyDelete anyDelete) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyDelete
- the any deletecom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, Collection<AnyDelete> anyDeletes) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameanyDeletes
- the any deletescom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void mutateRow(String tableName, org.apache.hadoop.hbase.client.RowMutations rm) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namerm
- the rmcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result append(String tableName, org.apache.hadoop.hbase.client.Append append) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameappend
- the appendcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result increment(String tableName, org.apache.hadoop.hbase.client.Increment increment) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table nameincrement
- the incrementcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic long incrementColumnValue(String tableName, Object rowKey, String family, String qualifier, long amount) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic long incrementColumnValue(String tableName, Object rowKey, String family, String qualifier, long amount, org.apache.hadoop.hbase.client.Durability durability) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountdurability
- the durabilitycom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic long incrementColumnValue(String tableName, Object rowKey, byte[] family, byte[] qualifier, long amount) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic long incrementColumnValue(String tableName, Object rowKey, byte[] family, byte[] qualifier, long amount, org.apache.hadoop.hbase.client.Durability durability) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- the table namerowKey
- the row keyfamily
- the familyqualifier
- the qualifieramount
- the amountdurability
- the durabilitycom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic 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> 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 com.landawn.abacus.exception.UncheckedIOException, Exception
T
- the generic typeR
- the generic typetableName
- the table nameservice
- the servicestartRowKey
- the start row keyendRowKey
- the end row keycallable
- the callablecom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionException
- the exceptionpublic <T extends com.google.protobuf.Service,R> 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 com.landawn.abacus.exception.UncheckedIOException, Exception
T
- the generic typeR
- the generic typetableName
- the table nameservice
- the servicestartRowKey
- the start row keyendRowKey
- the end row keycallable
- the callablecallback
- the callbackcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionException
- the exceptionpublic <R extends com.google.protobuf.Message> Map<byte[],R> batchCoprocessorService(String tableName, com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, com.google.protobuf.Message request, Object startRowKey, Object endRowKey, R responsePrototype) throws com.landawn.abacus.exception.UncheckedIOException, Exception
R
- the generic typetableName
- the table namemethodDescriptor
- the method descriptorrequest
- the requeststartRowKey
- the start row keyendRowKey
- the end row keyresponsePrototype
- the response prototypecom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionException
- the exceptionpublic <R extends com.google.protobuf.Message> 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 com.landawn.abacus.exception.UncheckedIOException, 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 callbackcom.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionException
- the exceptionpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
- Signals that an I/O exception has occurred.Copyright © 2019. All rights reserved.