Package org.apache.hadoop.io
Interface SequenceFile.ValueBytes
- Enclosing class:
- SequenceFile
public static interface SequenceFile.ValueBytes
The interface to 'raw' values of SequenceFiles.
-
Method Summary
Modifier and TypeMethodDescriptionintgetSize()voidwriteCompressedBytes(DataOutputStream outStream) Write compressed bytes to outStream.voidwriteUncompressedBytes(DataOutputStream outStream) Writes the uncompressed bytes to the outStream.
-
Method Details
-
writeUncompressedBytes
Writes the uncompressed bytes to the outStream.- Parameters:
outStream- : Stream to write uncompressed bytes into.- Throws:
IOException- raised on errors performing I/O.
-
writeCompressedBytes
Write compressed bytes to outStream. Note: that it will NOT compress the bytes if they are not compressed.- Parameters:
outStream- : Stream to write compressed bytes into.- Throws:
IllegalArgumentException- an illegal or inappropriate argument.IOException- raised on errors performing I/O.
-
getSize
int getSize()- Returns:
- Size of stored data.
-