Interface CsvInputAwareStepDialog
- All Known Implementing Classes:
CsvInputDialog,TextFileInputDialog
public interface CsvInputAwareStepDialog
A common interface for all step dialogs aware of the csv input format, such as
CsvInputDialog and
TextFileInputDialog-
Method Summary
Modifier and TypeMethodDescriptiondefault org.pentaho.di.trans.steps.fileinput.text.BufferedInputStreamReadergetBufferedReader(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, InputStream inputStream) getCsvImportProgressDialog(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, int samples, InputStreamReader reader) default String[]getFieldNames(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta) default String[]getFieldNamesImpl(org.pentaho.di.trans.steps.fileinput.text.BufferedInputStreamReader reader, org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta) getInputStream(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta) Returns theInputStreamcorresponding to the csv file, or null if the file cannot be read.org.pentaho.di.core.logging.LogChanneldefault InputStreamReadergetReader(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, InputStream inputStream) Returns theInputStreamReadercorresponding to the csv file, or null if the file cannot be read.org.pentaho.di.trans.TransMetadefault StringloadFieldsImpl(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, int samples) default voiddefault voiddefault StringmassageFieldName(String fieldName) Custom handling of each field can be implemented here.
-
Method Details
-
getFieldNames
-
getFieldNamesImpl
default String[] getFieldNamesImpl(org.pentaho.di.trans.steps.fileinput.text.BufferedInputStreamReader reader, org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
massageFieldName
Custom handling of each field can be implemented here. -
getInputStream
Returns theInputStreamcorresponding to the csv file, or null if the file cannot be read.- Returns:
- the
InputStreamcorresponding to the csv file, or null if the file cannot be read
-
getReader
default InputStreamReader getReader(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, InputStream inputStream) Returns theInputStreamReadercorresponding to the csv file, or null if the file cannot be read.- Returns:
- the
InputStreamReadercorresponding to the csv file, or null if the file cannot be read
-
getBufferedReader
default org.pentaho.di.trans.steps.fileinput.text.BufferedInputStreamReader getBufferedReader(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, InputStream inputStream) -
loadFieldsImpl
default String loadFieldsImpl(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, int samples) -
getCsvImportProgressDialog
CsvInputAwareImportProgressDialog getCsvImportProgressDialog(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, int samples, InputStreamReader reader) -
logError
-
logError
-
getLogChannel
org.pentaho.di.core.logging.LogChannel getLogChannel() -
getTransMeta
org.pentaho.di.trans.TransMeta getTransMeta()
-