public class HFileTestUtil
extends java.lang.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,
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(Configuration configuration,
FileSystem fs,
Path path,
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(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 java.io.IOException
java.io.IOExceptionpublic static void createHFileWithDataBlockEncoding(Configuration configuration,
FileSystem fs,
Path path,
DataBlockEncoding encoding,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows)
throws java.io.IOException
java.io.IOExceptionpublic static void createHFileWithTags(Configuration configuration,
FileSystem fs,
Path path,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows)
throws java.io.IOException
java.io.IOExceptionpublic static void createHFile(Configuration configuration,
FileSystem fs,
Path path,
DataBlockEncoding encoding,
byte[] family,
byte[] qualifier,
byte[] startKey,
byte[] endKey,
int numRows,
boolean withTag)
throws java.io.IOException
java.io.IOExceptionpublic static void verifyTags(Table table)
throws java.io.IOException
table - table containing tagged cellsjava.io.IOException - if problems reading table