Interface CsvInputAwareImportProgressDialog
- All Known Implementing Classes:
TextFileCSVImportProgressDialog,TextFileCSVImportProgressDialog
public interface CsvInputAwareImportProgressDialog
A common interface for progress dialogs that import csv data.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetStringFromRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, int index, boolean failOnParseError) WhenfailOnParseErroris set tofalse, returns theStringvalue fromRowMetaat the givenindex, or directly from therowobject, if there is a problem fetching the value fromRowMeta.open(boolean failOnParseError)
-
Method Details
-
open
-
getStringFromRow
default String getStringFromRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, int index, boolean failOnParseError) throws org.pentaho.di.core.exception.KettleException WhenfailOnParseErroris set tofalse, returns theStringvalue fromRowMetaat the givenindex, or directly from therowobject, if there is a problem fetching the value fromRowMeta. WhenfailOnParseErroristrue, anyExceptionthrown by the call toRowMeta.getString(Object[], int)is reported back to the caller.- Parameters:
rowMeta- an instance ofRowMetaInterfacerow- an Object array containing row dataindex- the index representing the column in a rowfailOnParseError- when true, Exceptions are reported back to the called, when false, exceptions are ignored and a null value is returned- Returns:
- the row value at the given index
- Throws:
org.pentaho.di.core.exception.KettleException
-