public class HBaseCompat1_0 extends Object implements HBaseCompat
| Constructor and Description |
|---|
HBaseCompat1_0() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnFamilyToTableDescriptor(org.apache.hadoop.hbase.HTableDescriptor tableDescriptor,
org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor) |
ConnectionMask |
createConnection(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.HTableDescriptor |
newTableDescriptor(String tableName)
Create and return a HTableDescriptor instance with the given name.
|
void |
setCompression(org.apache.hadoop.hbase.HColumnDescriptor cd,
String algorithm)
Configure the compression scheme
algorithm on a column family
descriptor cd. |
void |
setTimestamp(org.apache.hadoop.hbase.client.Delete d,
long timestamp) |
public void setCompression(org.apache.hadoop.hbase.HColumnDescriptor cd,
String algorithm)
HBaseCompatalgorithm on a column family
descriptor cd. The algorithm parameter is a string value
corresponding to one of the values of HBase's Compression enum. The
Compression enum has moved between packages as HBase has evolved, which
is why this method has a String argument in the signature instead of the
enum itself.setCompression in interface HBaseCompatcd - column family to configurealgorithm - compression type to usepublic org.apache.hadoop.hbase.HTableDescriptor newTableDescriptor(String tableName)
HBaseCompatnewTableDescriptor in interface HBaseCompattableName - HBase table namepublic ConnectionMask createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection in interface HBaseCompatIOExceptionpublic void addColumnFamilyToTableDescriptor(org.apache.hadoop.hbase.HTableDescriptor tableDescriptor,
org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor)
addColumnFamilyToTableDescriptor in interface HBaseCompatpublic void setTimestamp(org.apache.hadoop.hbase.client.Delete d,
long timestamp)
setTimestamp in interface HBaseCompatCopyright © 2012–2023. All rights reserved.