Class PackedInts.Writer

  • Enclosing class:
    PackedInts

    public abstract static class PackedInts.Writer
    extends Object
    A write-once Writer.
    • Method Detail

      • add

        public abstract void add​(long v)
                          throws IOException
        Add a value to the stream.
        Throws:
        IOException
      • bitsPerValue

        public final int bitsPerValue()
        The number of bits per value.
      • finish

        public abstract void finish()
                             throws IOException
        Perform end-of-stream operations.
        Throws:
        IOException
      • ord

        public abstract int ord()
        Returns the current ord in the stream (number of values that have been written so far minus one).