Class BulkBufferingEntryIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>
    Direct Known Subclasses:
    OfferLogIterator, StorageClientOfferLogIterator

    public abstract class BulkBufferingEntryIterator<T>
    extends java.lang.Object
    implements java.util.Iterator<T>
    Iterator that loads data in chunks, and return single entries
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      protected abstract java.util.List<T> loadNextChunk​(int chunkSize)
      Loads a chunk of the specified size.
      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
    • Constructor Detail

      • BulkBufferingEntryIterator

        public BulkBufferingEntryIterator​(int bufferSize)
    • Method Detail

      • hasNext

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

        protected abstract java.util.List<T> loadNextChunk​(int chunkSize)
        Loads a chunk of the specified size.
        Returns:
        List with next entries to process. Returned list must be the size specified, unless end of data is reached.
      • next

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