public class TestFixedFileTrailer extends Object
| Modifier and Type | Field and Description |
|---|---|
private ByteArrayOutputStream |
baos |
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.ExpectedException |
expectedEx |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static int |
MAX_COMPARATOR_NAME_LENGTH |
private static int[] |
NUM_FIELDS_BY_VERSION
The number of used fields by version.
|
private HBaseTestingUtility |
util |
private int |
version |
| Constructor and Description |
|---|
TestFixedFileTrailer(int version) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkLoadedTrailer(int version,
org.apache.hadoop.hbase.io.hfile.FixedFileTrailer expected,
org.apache.hadoop.hbase.io.hfile.FixedFileTrailer loaded) |
static Collection<Object[]> |
getParameters() |
private org.apache.hadoop.hbase.io.hfile.FixedFileTrailer |
readTrailer(org.apache.hadoop.fs.Path trailerPath) |
private void |
serializeAsWritable(DataOutputStream output,
org.apache.hadoop.hbase.io.hfile.FixedFileTrailer fft) |
void |
setUp() |
void |
testComparatorIsHBase1Compatible() |
void |
testCreateComparator() |
void |
testTrailer() |
void |
testTrailerForV2NonPBCompatibility() |
private void |
writeTrailer(org.apache.hadoop.fs.Path trailerPath,
org.apache.hadoop.hbase.io.hfile.FixedFileTrailer t,
byte[] useBytesInstead) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int MAX_COMPARATOR_NAME_LENGTH
private static final int[] NUM_FIELDS_BY_VERSION
private HBaseTestingUtility util
private org.apache.hadoop.fs.FileSystem fs
private ByteArrayOutputStream baos
private int version
public org.junit.rules.ExpectedException expectedEx
public TestFixedFileTrailer(int version)
public static Collection<Object[]> getParameters()
public void setUp() throws IOException
IOExceptionpublic void testComparatorIsHBase1Compatible()
public void testCreateComparator() throws IOException
IOExceptionpublic void testTrailer() throws IOException
IOExceptionpublic void testTrailerForV2NonPBCompatibility() throws Exception
Exceptionprivate void serializeAsWritable(DataOutputStream output, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer fft) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.io.hfile.FixedFileTrailer readTrailer(org.apache.hadoop.fs.Path trailerPath) throws IOException
IOExceptionprivate void writeTrailer(org.apache.hadoop.fs.Path trailerPath, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer t, byte[] useBytesInstead) throws IOException
IOExceptionprivate void checkLoadedTrailer(int version, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer expected, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer loaded) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.