Class PackedDataOutput


  • public final class PackedDataOutput
    extends java.lang.Object
    A DataOutput wrapper to write unaligned, variable-length packed integers.
    See Also:
    PackedDataInput
    • Constructor Summary

      Constructors 
      Constructor Description
      PackedDataOutput​(DataOutput out)
      Create a new instance that wraps out.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Flush pending bits to the underlying DataOutput.
      void writeLong​(long value, int bitsPerValue)
      Write a value using exactly bitsPerValue bits.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PackedDataOutput

        public PackedDataOutput​(DataOutput out)
        Create a new instance that wraps out.
    • Method Detail

      • writeLong

        public void writeLong​(long value,
                              int bitsPerValue)
                       throws java.io.IOException
        Write a value using exactly bitsPerValue bits.
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Flush pending bits to the underlying DataOutput.
        Throws:
        java.io.IOException