Class StaxPoiSheet
- java.lang.Object
-
- org.pentaho.di.trans.steps.excelinput.staxpoi.StaxPoiSheet
-
- All Implemented Interfaces:
org.pentaho.di.core.spreadsheet.KSheet
public class StaxPoiSheet extends Object implements org.pentaho.di.core.spreadsheet.KSheet
Streaming reader for XLSX sheets.
Rows should only be accessed sequentially: random access will severely impact performance.
-
-
Constructor Summary
Constructors Constructor Description StaxPoiSheet(org.apache.poi.xssf.eventusermodel.XSSFReader reader, String sheetName, String sheetID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.pentaho.di.core.spreadsheet.KCellgetCell(int colnr, int rownr)StringgetName()org.pentaho.di.core.spreadsheet.KCell[]getRow(int rownr)intgetRows()protected booleanisDateCell(String cellStyle)
-
-
-
Constructor Detail
-
StaxPoiSheet
public StaxPoiSheet(org.apache.poi.xssf.eventusermodel.XSSFReader reader, String sheetName, String sheetID) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException, XMLStreamException- Throws:
org.apache.poi.openxml4j.exceptions.InvalidFormatExceptionIOExceptionXMLStreamException
-
-
Method Detail
-
getRow
public org.pentaho.di.core.spreadsheet.KCell[] getRow(int rownr)
- Specified by:
getRowin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getRows
public int getRows()
- Specified by:
getRowsin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
getCell
public org.pentaho.di.core.spreadsheet.KCell getCell(int colnr, int rownr)- Specified by:
getCellin interfaceorg.pentaho.di.core.spreadsheet.KSheet
-
isDateCell
protected boolean isDateCell(String cellStyle)
-
close
public void close() throws IOException, XMLStreamException- Throws:
IOExceptionXMLStreamException
-
-