public final class HBaseExecutor extends Object implements Closeable
Column Family
in HBase table and Column
name will be empty String ""
if there is no annotation Column/ColumnFamily
added to the class/field and the field type is not an entity with getter/setter methods.
public static class Account { @Id private String id; // columnFamily/Column in HBase will be: "id:" private String gui; // columnFamily/Column in HBase will be: "gui:" private Name name; // columnFamily/Column in HBase will be: "name:firstName" and "name:lastName" private String emailAddress; // columnFamily/Column in HBase will be: "emailAddress:" } public static class Name { private String firstName; // columnFamily/Column in HBase will be: "name:firstName" private String lastName; // columnFamily/Column in HBase will be: "name:lastName" }But if the class is annotated by @ColumnFamily, the field name in the class will be mapped to
Column
in HBase table.
@ColumnFamily("columnFamily2B"); public static class Account { @Id private String id; // columnFamily/Column in HBase will be: "columnFamily2B:id" @Column("guid") private String gui; // columnFamily/Column in HBase will be: "columnFamily2B:guid" @ColumnFamily("fullName") private Name name; // columnFamily/Column in HBase will be: "fullName:givenName" and "fullName:lastName" @ColumnFamily("email") private String emailAddress; // columnFamily/Column in HBase will be: "email:emailAddress" } public static class Name { @Column("givenName") private String firstName; private String lastName; }
HBaseColumn
,
org.apache.hadoop.hbase.client.TableModifier and Type | Class and Description |
---|---|
static class |
HBaseExecutor.HBaseMapper<T,K> |
Constructor and Description |
---|
HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn) |
HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn,
com.landawn.abacus.util.AsyncExecutor asyncExecutor) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.client.Admin |
admin() |
org.apache.hadoop.hbase.client.Result |
append(String tableName,
AnyAppend append) |
org.apache.hadoop.hbase.client.Result |
append(String tableName,
org.apache.hadoop.hbase.client.Append append) |
AsyncHBaseExecutor |
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() |
org.apache.hadoop.hbase.client.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) |
<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) |
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService(String tableName,
Object rowKey) |
void |
delete(String tableName,
AnyDelete anyDelete) |
void |
delete(String tableName,
Collection<AnyDelete> anyDeletes) |
void |
delete(String tableName,
org.apache.hadoop.hbase.client.Delete delete) |
void |
delete(String tableName,
List<org.apache.hadoop.hbase.client.Delete> deletes) |
boolean |
exists(String tableName,
AnyGet anyGet) |
List<Boolean> |
exists(String tableName,
Collection<AnyGet> anyGets) |
boolean |
exists(String tableName,
org.apache.hadoop.hbase.client.Get get) |
List<Boolean> |
exists(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets) |
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) |
<T> List<T> |
get(Class<T> targetClass,
String tableName,
Collection<AnyGet> anyGets) |
<T> T |
get(Class<T> targetClass,
String tableName,
org.apache.hadoop.hbase.client.Get get) |
<T> List<T> |
get(Class<T> targetClass,
String tableName,
List<org.apache.hadoop.hbase.client.Get> gets) |
org.apache.hadoop.hbase.client.Result |
get(String tableName,
AnyGet anyGet) |
List<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
Collection<AnyGet> anyGets) |
org.apache.hadoop.hbase.client.Result |
get(String tableName,
org.apache.hadoop.hbase.client.Get get) |
List<org.apache.hadoop.hbase.client.Result> |
get(String tableName,
List<org.apache.hadoop.hbase.client.Get> gets) |
org.apache.hadoop.hbase.client.Table |
getTable(String tableName)
Gets the table.
|
org.apache.hadoop.hbase.client.Result |
increment(String tableName,
AnyIncrement increment) |
org.apache.hadoop.hbase.client.Result |
increment(String tableName,
org.apache.hadoop.hbase.client.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.
|
<T,K> HBaseExecutor.HBaseMapper<T,K> |
mapper(Class<T> targetEntityClass) |
<T,K> HBaseExecutor.HBaseMapper<T,K> |
mapper(Class<T> targetEntityClass,
String tableName,
com.landawn.abacus.util.NamingPolicy namingPolicy) |
void |
mutateRow(String tableName,
AnyRowMutations rm) |
void |
mutateRow(String tableName,
org.apache.hadoop.hbase.client.RowMutations rm) |
void |
put(String tableName,
AnyPut anyPut) |
void |
put(String tableName,
Collection<AnyPut> anyPuts) |
void |
put(String tableName,
List<org.apache.hadoop.hbase.client.Put> puts) |
void |
put(String tableName,
org.apache.hadoop.hbase.client.Put put) |
static void |
registerRowKeyProperty(Class<?> cls,
String rowKeyPropertyName)
Deprecated.
please defined or annotated the key/id field by
@Id |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
AnyScan anyScan) |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
byte[] family) |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
byte[] family,
byte[] qualifier) |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
org.apache.hadoop.hbase.client.Scan scan) |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
String family) |
<T> com.landawn.abacus.util.stream.Stream<T> |
scan(Class<T> targetClass,
String tableName,
String family,
String qualifier) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
AnyScan anyScan) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
byte[] family) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
byte[] family,
byte[] qualifier) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
org.apache.hadoop.hbase.client.Scan scan) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
String family) |
com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> |
scan(String tableName,
String family,
String qualifier) |
static List<AnyPut> |
toAnyPut(Collection<?> entities)
Deprecated.
replaced by
AnyPut.from(Collection) |
static List<AnyPut> |
toAnyPut(Collection<?> entities,
com.landawn.abacus.util.NamingPolicy namingPolicy)
Deprecated.
replaced by
AnyPut.from(Collection, NamingPolicy) |
static AnyPut |
toAnyPut(Object entity)
Deprecated.
replaced by
AnyPut.from(Object) |
static AnyPut |
toAnyPut(Object entity,
com.landawn.abacus.util.NamingPolicy namingPolicy)
Deprecated.
replaced by
AnyPut.from(Object, NamingPolicy) |
static List<org.apache.hadoop.hbase.client.Delete> |
toDelete(Collection<AnyDelete> anyDeletes)
Deprecated.
Use
AnyDelete#toDelete(Collection instead |
static <T> T |
toEntity(Class<T> targetClass,
org.apache.hadoop.hbase.client.Result result) |
static List<org.apache.hadoop.hbase.client.Get> |
toGet(Collection<AnyGet> anyGets)
Deprecated.
Use
AnyGet#toGet(Collection instead |
static <T> List<T> |
toList(Class<T> targetClass,
org.apache.hadoop.hbase.client.ResultScanner resultScanner) |
static <T> List<T> |
toList(Class<T> targetClass,
org.apache.hadoop.hbase.client.ResultScanner resultScanner,
int offset,
int count) |
static List<org.apache.hadoop.hbase.client.Put> |
toPut(Collection<?> entities)
Deprecated.
Use
AnyPut.toPut(Collection<?>) instead |
static List<org.apache.hadoop.hbase.client.Put> |
toPut(Collection<?> entities,
com.landawn.abacus.util.NamingPolicy namingPolicy)
Deprecated.
Use
AnyPut.toPut(Collection<?>,NamingPolicy) instead |
public HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn)
public HBaseExecutor(org.apache.hadoop.hbase.client.Connection conn, com.landawn.abacus.util.AsyncExecutor asyncExecutor)
public org.apache.hadoop.hbase.client.Admin admin()
public org.apache.hadoop.hbase.client.Connection connection()
public AsyncHBaseExecutor async()
@Deprecated public static void registerRowKeyProperty(Class<?> cls, String rowKeyPropertyName)
@Id
cls
- entity classes with getter/setter methodsrowKeyPropertyName
- Id
,
javax.persistence.Id
public static <T> List<T> toList(Class<T> targetClass, org.apache.hadoop.hbase.client.ResultScanner resultScanner)
T
- targetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)resultScanner
- public static <T> List<T> toList(Class<T> targetClass, org.apache.hadoop.hbase.client.ResultScanner resultScanner, int offset, int count)
T
- targetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)resultScanner
- offset
- count
- public static <T> T toEntity(Class<T> targetClass, org.apache.hadoop.hbase.client.Result result)
T
- targetClass
- entity classes with getter/setter methods or basic single value type(Primitive/String/Date...)result
- @Deprecated public static AnyPut toAnyPut(Object entity)
AnyPut.from(Object)
entity
- entity with getter/setter methods@Deprecated public static AnyPut toAnyPut(Object entity, com.landawn.abacus.util.NamingPolicy namingPolicy)
AnyPut.from(Object, NamingPolicy)
entity
- entity with getter/setter methodsnamingPolicy
- @Deprecated public static List<AnyPut> toAnyPut(Collection<?> entities)
AnyPut.from(Collection)
entities
- AnyPut
or entity with getter/setter methods@Deprecated public static List<AnyPut> toAnyPut(Collection<?> entities, com.landawn.abacus.util.NamingPolicy namingPolicy)
AnyPut.from(Collection, NamingPolicy)
entities
- AnyPut
or entity with getter/setter methodsnamingPolicy
- @Deprecated public static List<org.apache.hadoop.hbase.client.Put> toPut(Collection<?> entities)
AnyPut.toPut(Collection<?>)
insteadentities
- AnyPut
or entity with getter/setter methods@Deprecated public static List<org.apache.hadoop.hbase.client.Put> toPut(Collection<?> entities, com.landawn.abacus.util.NamingPolicy namingPolicy)
AnyPut.toPut(Collection<?>,NamingPolicy)
insteadentities
- AnyPut
or entity with getter/setter methodsnamingPolicy
- @Deprecated public static List<org.apache.hadoop.hbase.client.Get> toGet(Collection<AnyGet> anyGets)
AnyGet#toGet(Collection)
insteadanyGets
- @Deprecated public static List<org.apache.hadoop.hbase.client.Delete> toDelete(Collection<AnyDelete> anyDeletes)
AnyDelete#toDelete(Collection)
insteadanyDeletes
- public org.apache.hadoop.hbase.client.Table getTable(String tableName) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic <T,K> HBaseExecutor.HBaseMapper<T,K> mapper(Class<T> targetEntityClass)
T
- K
- targetEntityClass
- public <T,K> HBaseExecutor.HBaseMapper<T,K> mapper(Class<T> targetEntityClass, String tableName, com.landawn.abacus.util.NamingPolicy namingPolicy)
T
- K
- targetEntityClass
- tableName
- namingPolicy
- public boolean exists(String tableName, org.apache.hadoop.hbase.client.Get get) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- get
- com.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
- gets
- com.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
- gets
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic boolean exists(String tableName, AnyGet anyGet) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyGet
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic List<Boolean> exists(String tableName, Collection<AnyGet> anyGets) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyGets
- com.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
- anyGets
- com.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
- get
- com.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
- gets
- com.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
- anyGet
- com.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
- anyGets
- com.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
- targetClass
- tableName
- get
- com.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
- targetClass
- tableName
- gets
- com.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
- targetClass
- tableName
- anyGet
- com.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
- targetClass
- tableName
- anyGets
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, String family)
tableName
- family
- public com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, String family, String qualifier)
tableName
- family
- qualifier
- public com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, byte[] family)
tableName
- family
- public com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, byte[] family, byte[] qualifier)
tableName
- family
- qualifier
- public com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, AnyScan anyScan)
tableName
- anyScan
- public com.landawn.abacus.util.stream.Stream<org.apache.hadoop.hbase.client.Result> scan(String tableName, org.apache.hadoop.hbase.client.Scan scan)
tableName
- scan
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, String family)
T
- targetClass
- tableName
- family
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, String family, String qualifier)
T
- targetClass
- tableName
- family
- qualifier
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, byte[] family)
T
- targetClass
- tableName
- family
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, byte[] family, byte[] qualifier)
T
- targetClass
- tableName
- family
- qualifier
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, AnyScan anyScan)
T
- targetClass
- tableName
- anyScan
- public <T> com.landawn.abacus.util.stream.Stream<T> scan(Class<T> targetClass, String tableName, org.apache.hadoop.hbase.client.Scan scan)
T
- targetClass
- tableName
- scan
- public void put(String tableName, org.apache.hadoop.hbase.client.Put put) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- put
- com.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
- puts
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void put(String tableName, AnyPut anyPut) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyPut
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void put(String tableName, Collection<AnyPut> anyPuts) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyPuts
- com.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
- delete
- com.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
- deletes
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, AnyDelete anyDelete) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyDelete
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void delete(String tableName, Collection<AnyDelete> anyDeletes) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- anyDeletes
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void mutateRow(String tableName, AnyRowMutations rm) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- rm
- com.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
- rm
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result append(String tableName, AnyAppend append) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- append
- com.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
- append
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.client.Result increment(String tableName, AnyIncrement increment) throws com.landawn.abacus.exception.UncheckedIOException
tableName
- increment
- com.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
- increment
- com.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
- rowKey
- family
- qualifier
- amount
- com.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
- rowKey
- family
- qualifier
- amount
- durability
- com.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
- rowKey
- family
- qualifier
- amount
- com.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
- rowKey
- family
- qualifier
- amount
- durability
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel coprocessorService(String tableName, Object rowKey)
tableName
- rowKey
- public <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
- R
- tableName
- service
- startRowKey
- endRowKey
- callable
- com.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
- R
- tableName
- service
- startRowKey
- endRowKey
- callable
- callback
- com.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
- tableName
- methodDescriptor
- request
- startRowKey
- endRowKey
- responsePrototype
- com.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
- tableName
- methodDescriptor
- request
- startRowKey
- endRowKey
- responsePrototype
- callback
- com.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 © 2021. All rights reserved.