public class HFileTestUtil extends Object
Constructor and Description |
---|
HFileTestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createHFile(Configuration configuration,
FileSystem 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(Configuration configuration,
FileSystem fs,
Path path,
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 |
createHFileWithTags(Configuration configuration,
FileSystem 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(Table table)
This verifies that each cell has a tag that is equal to its rowkey name.
|
public static void createHFile(Configuration configuration, FileSystem fs, Path path, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows) throws IOException
IOException
public static void createHFileWithTags(Configuration configuration, FileSystem fs, Path path, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows) throws IOException
IOException
public static void createHFile(Configuration configuration, FileSystem fs, Path path, byte[] family, byte[] qualifier, byte[] startKey, byte[] endKey, int numRows, boolean withTag) throws IOException
IOException
public static void verifyTags(Table table) throws IOException
table
- table containing tagged cellsIOException
- if problems reading table