Class PackedDataOutput


  • public final class PackedDataOutput
    extends Object
    A DataOutput wrapper to write unaligned, variable-length packed integers.
    See Also:
    PackedDataInput
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • 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 IOException
        Write a value using exactly bitsPerValue bits.
        Throws:
        IOException