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
Exception
public 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
Exception
public org.apache.hadoop.hbase.client.ResultScanner scan(byte[] startRow, byte[] stopRow) throws Exception
Exception
public boolean exists(org.apache.hadoop.hbase.client.Get get) throws Exception
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.