类 IteratorItemReader<T>

    • 构造器概要

      构造器 
      构造器说明
      IteratorItemReader​(java.lang.Iterable<T> iterable)
      Construct a new reader from this iterable (could be a collection), by extracting an instance of Iterator from it.
      IteratorItemReader​(java.util.Iterator<T> iterator)
      Construct a new reader from this iterator directly.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      Tread()
      Implementation of ItemReader.read() that just iterates over the iterator provided.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • IteratorItemReader

        public IteratorItemReader​(java.lang.Iterable<T> iterable)
        Construct a new reader from this iterable (could be a collection), by extracting an instance of Iterator from it.
        参数:
        iterable - in instance of Iterable
        另请参阅:
        Iterable.iterator()
      • IteratorItemReader

        public IteratorItemReader​(java.util.Iterator<T> iterator)
        Construct a new reader from this iterator directly.
        参数:
        iterator - an instance of Iterator
    • 方法详细资料

      • read

        public T read()
        Implementation of ItemReader.read() that just iterates over the iterator provided.
        指定者:
        read 在接口中 ItemReader<T>
        返回:
        T the item to be processed or null if the data source is exhausted