Interface SequenceFile.ValueBytes

Enclosing class:
SequenceFile

public static interface SequenceFile.ValueBytes
The interface to 'raw' values of SequenceFiles.
  • Method Details

    • writeUncompressedBytes

      void writeUncompressedBytes(DataOutputStream outStream) throws IOException
      Writes the uncompressed bytes to the outStream.
      Parameters:
      outStream - : Stream to write uncompressed bytes into.
      Throws:
      IOException - raised on errors performing I/O.
    • writeCompressedBytes

      void writeCompressedBytes(DataOutputStream outStream) throws IllegalArgumentException, IOException
      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.