Class IntBlockPool.SliceReader

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean endOfSlice()
      Returns true iff the current slice is fully read.
      private void nextSlice()  
      int readInt()
      Reads the next int from the current slice and returns it.
      void reset​(int startOffset, int endOffset)
      Resets the reader to a slice give the slices absolute start and end offset in the pool
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • upto

        private int upto
      • bufferUpto

        private int bufferUpto
      • bufferOffset

        private int bufferOffset
      • buffer

        private int[] buffer
      • limit

        private int limit
      • level

        private int level
      • end

        private int end
    • Method Detail

      • reset

        public void reset​(int startOffset,
                          int endOffset)
        Resets the reader to a slice give the slices absolute start and end offset in the pool
      • endOfSlice

        public boolean endOfSlice()
        Returns true iff the current slice is fully read. If this method returns true readInt() should not be called again on this slice.
      • readInt

        public int readInt()
        Reads the next int from the current slice and returns it.
        See Also:
        endOfSlice()
      • nextSlice

        private void nextSlice()