Package org.apache.hadoop.hbase.io.hfile
Class TestFixedFileTrailer
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestFixedFileTrailer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteArrayOutputStreamstatic final HBaseClassTestRuleprivate org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static final intprivate static final int[]The number of used fields by version.private HBaseTestingUtilprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckLoadedTrailer(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.FixedFileTrailerreadTrailer(org.apache.hadoop.fs.Path trailerPath) private voidserializeAsWritable(DataOutputStream output, org.apache.hadoop.hbase.io.hfile.FixedFileTrailer fft) voidsetUp()voidvoidvoidprivate voidwriteTrailer(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
-