public interface CsvInputAwareStepDialog
CsvInputDialog
and
TextFileInputDialog
Modifier and Type | Method and Description |
---|---|
CsvInputAwareImportProgressDialog |
getCsvImportProgressDialog(CsvInputAwareMeta meta,
int samples,
InputStreamReader reader) |
default String[] |
getFieldNames(CsvInputAwareMeta meta) |
default String[] |
getFieldNamesImpl(InputStreamReader reader,
CsvInputAwareMeta meta) |
InputStream |
getInputStream(CsvInputAwareMeta meta)
Returns the
InputStream corresponding to the csv file, or null if the file cannot be read. |
LogChannel |
getLogChannel() |
default InputStreamReader |
getReader(CsvInputAwareMeta meta,
InputStream inputStream)
Returns the
InputStreamReader corresponding to the csv file, or null if the file cannot be read. |
TransMeta |
getTransMeta() |
default String |
loadFieldsImpl(CsvInputAwareMeta meta,
int samples) |
default void |
logError(String message) |
default void |
logError(String message,
Exception exception) |
default String |
massageFieldName(String fieldName)
Custom handling of each field can be implemented here.
|
default String[] getFieldNames(CsvInputAwareMeta meta)
default String[] getFieldNamesImpl(InputStreamReader reader, CsvInputAwareMeta meta) throws KettleException
KettleException
default String massageFieldName(String fieldName)
InputStream getInputStream(CsvInputAwareMeta meta)
InputStream
corresponding to the csv file, or null if the file cannot be read.InputStream
corresponding to the csv file, or null if the file cannot be readdefault InputStreamReader getReader(CsvInputAwareMeta meta, InputStream inputStream)
InputStreamReader
corresponding to the csv file, or null if the file cannot be read.InputStreamReader
corresponding to the csv file, or null if the file cannot be readdefault String loadFieldsImpl(CsvInputAwareMeta meta, int samples)
CsvInputAwareImportProgressDialog getCsvImportProgressDialog(CsvInputAwareMeta meta, int samples, InputStreamReader reader)
default void logError(String message)
LogChannel getLogChannel()
TransMeta getTransMeta()
Copyright © 2019 Hitachi Vantara. All rights reserved.