java.lang.Object
com.google.common.collect.UnmodifiableIterator<
DsRow>
com.google.common.collect.AbstractIterator<
DsRow>
org.qubership.atp.dataset.migration.SheetDataIterator
- All Implemented Interfaces:
Iterator<DsRow>
public class SheetDataIterator
extends com.google.common.collect.AbstractIterator<DsRow>
-
-
Constructor Summary
Constructors
Iterates over significant cells in sheet.
-
Method Summary
create(org.apache.poi.ss.usermodel.Sheet sheet,
int valuesColumnIndex,
ExcelEvaluator excelEvaluator)
Creates iterator to traverse all rows from supplied sheet except the header one.
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
SheetDataIterator
public SheetDataIterator(Iterator<org.apache.poi.ss.usermodel.Row> sheetData,
int valuesColumnIndex,
ExcelEvaluator excelEvaluator)
Iterates over significant cells in sheet.
- Parameters:
sheetData - should not include header row
valuesColumnIndex - index of current dataSet column
excelEvaluator - used to acquire group cell, parameter key cell values.
-
Method Details
-
create
Creates iterator to traverse all rows from supplied sheet except the header one.
-
computeNext
protected DsRow computeNext()
- Specified by:
computeNext in class com.google.common.collect.AbstractIterator<DsRow>