public class HBaseClient extends Object implements Closeable
HBase client for constructing requests and do actual interaction with HBase.
| Constructor and Description |
|---|
HBaseClient(Map<String,Object> map,
org.apache.hadoop.conf.Configuration configuration,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.Result[] |
batchGet(List<org.apache.hadoop.hbase.client.Get> gets) |
void |
batchMutate(List<org.apache.hadoop.hbase.client.Mutation> mutations) |
void |
close() |
org.apache.hadoop.hbase.client.Get |
constructGetRequests(byte[] rowKey,
HBaseProjectionCriteria projectionCriteria) |
List<org.apache.hadoop.hbase.client.Mutation> |
constructMutationReq(byte[] rowKey,
ColumnList cols,
org.apache.hadoop.hbase.client.Durability durability) |
boolean |
exists(org.apache.hadoop.hbase.client.Get get) |
org.apache.hadoop.hbase.client.ResultScanner |
scan(byte[] startRow,
byte[] stopRow) |
public List<org.apache.hadoop.hbase.client.Mutation> constructMutationReq(byte[] rowKey, ColumnList cols, org.apache.hadoop.hbase.client.Durability durability)
public void batchMutate(List<org.apache.hadoop.hbase.client.Mutation> mutations) throws Exception
Exceptionpublic org.apache.hadoop.hbase.client.Get constructGetRequests(byte[] rowKey,
HBaseProjectionCriteria projectionCriteria)
public org.apache.hadoop.hbase.client.Result[] batchGet(List<org.apache.hadoop.hbase.client.Get> gets) throws Exception
Exceptionpublic org.apache.hadoop.hbase.client.ResultScanner scan(byte[] startRow,
byte[] stopRow)
throws Exception
Exceptionpublic boolean exists(org.apache.hadoop.hbase.client.Get get)
throws Exception
Exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.