Class SegmentIteratorImpl<T>

  • All Implemented Interfaces:
    SegmentIterator<T>, java.lang.AutoCloseable, java.util.Iterator<T>

    @Beta
    public class SegmentIteratorImpl<T>
    extends java.lang.Object
    implements SegmentIterator<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the iterator, freeing any resources associated with it.
      long getOffset()
      Provides the current offset in the segment.
      long getStartingOffset()  
      boolean hasNext()  
      T next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • getOffset

        public long getOffset()
        Description copied from interface: SegmentIterator
        Provides the current offset in the segment.
        Specified by:
        getOffset in interface SegmentIterator<T>
        Returns:
        The current offset in the segment
      • close

        public void close()
        Description copied from interface: SegmentIterator
        Closes the iterator, freeing any resources associated with it.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface SegmentIterator<T>
        See Also:
        AutoCloseable.close()
      • getStartingOffset

        public long getStartingOffset()