Class PackedWriter

    • Field Detail

      • finished

        boolean finished
      • nextBlocks

        final byte[] nextBlocks
      • nextValues

        final long[] nextValues
      • iterations

        final int iterations
      • off

        int off
      • written

        int written
    • Method Detail

      • add

        public void add​(long v)
                 throws java.io.IOException
        Description copied from class: PackedInts.Writer
        Add a value to the stream.
        Specified by:
        add in class PackedInts.Writer
        Throws:
        java.io.IOException
      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from class: PackedInts.Writer
        Perform end-of-stream operations.
        Specified by:
        finish in class PackedInts.Writer
        Throws:
        java.io.IOException
      • flush

        private void flush()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • ord

        public int ord()
        Description copied from class: PackedInts.Writer
        Returns the current ord in the stream (number of values that have been written so far minus one).
        Specified by:
        ord in class PackedInts.Writer