Class RunBatchIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void advanceIfNeeded​(char target)
      Advance until the value.
      ContainerBatchIterator clone()
      Creates a copy of the iterator.
      boolean hasNext()
      Whether the underlying container is exhausted or not
      int next​(int key, int[] buffer, int offset)
      Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.
      void releaseContainer()
      Discard the reference to the container
      • Methods inherited from class java.lang.Object

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

      • RunBatchIterator

        public RunBatchIterator​(RunContainer runs)
    • Method Detail

      • next

        public int next​(int key,
                        int[] buffer,
                        int offset)
        Description copied from interface: ContainerBatchIterator
        Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.
        Specified by:
        next in interface ContainerBatchIterator
        Parameters:
        key - the prefix of the values
        buffer - the buffer to write values onto
        offset - the offset into the buffer to write values onto
        Returns:
        how many values were written.