Class StreamListIterator<T,E>

java.lang.Object
org.apache.camel.support.StreamListIterator<T,E>
Type Parameters:
T - the input type from the delegate iterator
E - the output type after applying the row mapper
All Implemented Interfaces:
Iterator<E>

public final class StreamListIterator<T,E> extends Object implements Iterator<E>
Iterator that applies a RowMapper transformation to each element lazily. Useful for memory-efficient processing of large result sets from databases or APIs.
  • Constructor Details

  • Method Details

    • hasNext

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

      public E next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>