public class HFileTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
static byte[][] |
DEFAULT_COLUMN_FAMILIES
Column families used by the test
|
static byte[] |
DEFAULT_COLUMN_FAMILY
Column family used by the test
|
static String |
OPT_DATA_BLOCK_ENCODING |
static String |
OPT_DATA_BLOCK_ENCODING_USAGE |
Constructor and Description |
---|
HFileTestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createHFile(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows)
Create an HFile with the given number of rows between a given
start key and end key @ family:qualifier.
|
static void |
createHFile(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows,
boolean withTag)
Create an HFile with the given number of rows between a given
start key and end key @ family:qualifier.
|
static void |
createHFileWithDataBlockEncoding(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows)
Create an HFile with the given number of rows between a given
start key and end key @ family:qualifier.
|
static void |
createHFileWithTags(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows)
Create an HFile with the given number of rows between a given
start key and end key @ family:qualifier.
|
static void |
verifyTags(org.apache.hadoop.hbase.client.Table table)
This verifies that each cell has a tag that is equal to its rowkey name.
|
public static final String OPT_DATA_BLOCK_ENCODING_USAGE
public static final String OPT_DATA_BLOCK_ENCODING
public static byte[] DEFAULT_COLUMN_FAMILY
public static final byte[][] DEFAULT_COLUMN_FAMILIES
public HFileTestUtil()
public static void createHFile(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows) throws IOException
IOException
public static void createHFileWithDataBlockEncoding(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows) throws IOException
IOException
public static void createHFileWithTags(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows) throws IOException
IOException
public static void createHFile(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows, boolean withTag) throws IOException
IOException
public static void verifyTags(org.apache.hadoop.hbase.client.Table table) throws IOException
table
- table containing tagged cellsIOException
- if problems reading tableCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.