public interface HBaseCompat
| 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) |
void setCompression(org.apache.hadoop.hbase.HColumnDescriptor cd,
String algorithm)
algorithm 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.cd - column family to configurealgorithm - compression type to useorg.apache.hadoop.hbase.HTableDescriptor newTableDescriptor(String tableName)
tableName - HBase table nameConnectionMask createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionvoid addColumnFamilyToTableDescriptor(org.apache.hadoop.hbase.HTableDescriptor tableDescriptor,
org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor)
void setTimestamp(org.apache.hadoop.hbase.client.Delete d,
long timestamp)
Copyright © 2012–2020. All rights reserved.