Package org.apache.hadoop.hbase.io.hfile
Class TestFixedFileTrailer
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestFixedFileTrailer
-
Field Summary
Modifier and TypeFieldDescriptionprivate ByteArrayOutputStream
static final HBaseClassTestRule
private org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private static final int
private static final int[]
The number of used fields by version.private HBaseTestingUtil
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkLoadedTrailer
(int version, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer expected, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer loaded) static Collection<Object[]>
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
void
void
private void
writeTrailer
(org.apache.hadoop.fs.Path trailerPath, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer t, byte[] useBytesInstead)
-
Field Details
-
CLASS_RULE
-
LOG
-
MAX_COMPARATOR_NAME_LENGTH
- See Also:
-
NUM_FIELDS_BY_VERSION
The number of used fields by version. Indexed by version minus two. Min version that we support is V2 -
util
-
fs
-
baos
-
version
-
-
Constructor Details
-
TestFixedFileTrailer
-
-
Method Details
-
getParameters
-
setUp
- Throws:
IOException
-
testCreateComparator
- Throws:
IOException
-
testTrailer
- Throws:
IOException
-
testTrailerForV2NonPBCompatibility
- Throws:
Exception
-
serializeAsWritable
private void serializeAsWritable(DataOutputStream output, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer fft) throws IOException - Throws:
IOException
-
readTrailer
private org.apache.hadoop.hbase.io.hfile.FixedFileTrailer readTrailer(org.apache.hadoop.fs.Path trailerPath) throws IOException - Throws:
IOException
-
writeTrailer
private void writeTrailer(org.apache.hadoop.fs.Path trailerPath, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer t, byte[] useBytesInstead) throws IOException - Throws:
IOException
-
checkLoadedTrailer
private void checkLoadedTrailer(int version, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer expected, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer loaded) throws IOException - Throws:
IOException
-