Class BlockPackedReaderIterator

    • Constructor Summary

      Constructors 
      Constructor Description
      BlockPackedReaderIterator​(DataInput in, int packedIntsVersion, int blockSize, long valueCount)
      Sole constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long next()
      Read the next value.
      LongsRef next​(int count)
      Read between 1 and count values.
      long ord()
      Return the offset of the next value to read.
      void reset​(DataInput in, long valueCount)
      Reset the current reader to wrap a stream of valueCount values contained in in.
      void skip​(long count)
      Skip exactly count values.
      • Methods inherited from class java.lang.Object

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

      • BlockPackedReaderIterator

        public BlockPackedReaderIterator​(DataInput in,
                                         int packedIntsVersion,
                                         int blockSize,
                                         long valueCount)
        Sole constructor.
        Parameters:
        blockSize - the number of values of a block, must be equal to the block size of the BlockPackedWriter which has been used to write the stream
    • Method Detail

      • reset

        public void reset​(DataInput in,
                          long valueCount)
        Reset the current reader to wrap a stream of valueCount values contained in in. The block size remains unchanged.
      • skip

        public void skip​(long count)
                  throws java.io.IOException
        Skip exactly count values.
        Throws:
        java.io.IOException
      • next

        public long next()
                  throws java.io.IOException
        Read the next value.
        Throws:
        java.io.IOException
      • next

        public LongsRef next​(int count)
                      throws java.io.IOException
        Read between 1 and count values.
        Throws:
        java.io.IOException
      • ord

        public long ord()
        Return the offset of the next value to read.