public class HBaseUtils extends Object
Constructor and Description |
---|
HBaseUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.filter.Filter |
andFilterAtIndex(org.apache.hadoop.hbase.filter.Filter currentFilter,
int index,
org.apache.hadoop.hbase.filter.Filter newFilter) |
static org.apache.hadoop.hbase.filter.Filter |
deserializeFilter(byte[] filterBytes) |
static byte[] |
getBytes(String str) |
static byte[] |
maxOfStartRows(byte[] left,
byte[] right) |
static byte[] |
maxOfStopRows(byte[] left,
byte[] right) |
static byte[] |
minOfStartRows(byte[] left,
byte[] right) |
static byte[] |
minOfStopRows(byte[] left,
byte[] right) |
static org.apache.hadoop.hbase.filter.Filter |
orFilterAtIndex(org.apache.hadoop.hbase.filter.Filter currentFilter,
int index,
org.apache.hadoop.hbase.filter.Filter newFilter) |
static byte[] |
serializeFilter(org.apache.hadoop.hbase.filter.Filter filter) |
static void |
verifyColumns(List<SchemaPath> columns,
org.apache.hadoop.hbase.HTableDescriptor hTableDesc)
Verify the presence of a column family in the schema path of the hbase table or whether the schema path is
the row key column.
|
public static byte[] getBytes(String str)
public static byte[] serializeFilter(org.apache.hadoop.hbase.filter.Filter filter)
public static org.apache.hadoop.hbase.filter.Filter deserializeFilter(byte[] filterBytes)
public static org.apache.hadoop.hbase.filter.Filter andFilterAtIndex(org.apache.hadoop.hbase.filter.Filter currentFilter, int index, org.apache.hadoop.hbase.filter.Filter newFilter)
public static org.apache.hadoop.hbase.filter.Filter orFilterAtIndex(org.apache.hadoop.hbase.filter.Filter currentFilter, int index, org.apache.hadoop.hbase.filter.Filter newFilter)
public static byte[] maxOfStartRows(byte[] left, byte[] right)
public static byte[] minOfStartRows(byte[] left, byte[] right)
public static byte[] maxOfStopRows(byte[] left, byte[] right)
public static byte[] minOfStopRows(byte[] left, byte[] right)
public static void verifyColumns(List<SchemaPath> columns, org.apache.hadoop.hbase.HTableDescriptor hTableDesc)
columns
- List of the selected columnshTableDesc
- HTableDescriptor of HBase/MapR-DB_binary table (consists the details about that table)DrillRuntimeException
- if column family does not exist, or is not row_key column.Copyright © 1970 The Apache Software Foundation. All rights reserved.