public class CsvInputDialog extends BaseStepDialog implements StepDialogInterface, GetFieldsCapableStepDialog<CsvInputMeta>, CsvInputAwareStepDialog
BaseStepDialog.FieldsChoiceDialogProvider
backupChanged, baseStepMeta, BUTTON_ALIGNMENT_CENTER, BUTTON_ALIGNMENT_LEFT, BUTTON_ALIGNMENT_RIGHT, buttonAlignment, changed, databaseDialog, fdCancel, fdCreate, fdGet, fdlStepname, fdOK, fdPreview, fdSQL, fdStepname, log, loggingObject, lsCancel, lsCreate, lsDef, lsGet, lsOK, lsPreview, lsResize, lsSQL, metaStore, props, repository, shell, stepMeta, stepname, transMeta, variables, wCancel, wCreate, wGet, wlStepname, wOK, wPreview, wSQL, wStepname
logger
Constructor and Description |
---|
CsvInputDialog(org.eclipse.swt.widgets.Shell parent,
Object in,
TransMeta tr,
String sname) |
Modifier and Type | Method and Description |
---|---|
protected void |
asyncUpdatePreview() |
CsvInputAwareImportProgressDialog |
getCsvImportProgressDialog(CsvInputAwareMeta meta,
int samples,
InputStreamReader reader) |
void |
getData() |
void |
getData(CsvInputMeta inputMeta,
boolean copyStepname)
Copy information from the meta-data input to the dialog fields.
|
void |
getData(CsvInputMeta inputMeta,
boolean copyStepname,
boolean reloadAllFields,
Set<String> newFieldNames) |
String[] |
getFieldNames(CsvInputMeta meta)
Returns an array of incoming field names, or an empty array, if fields cannot be fetched, for some reason.
|
TableView |
getFieldsTable() |
InputStream |
getInputStream(CsvInputAwareMeta meta)
Returns the
InputStream corresponding to the csv file, or null if the file cannot be read. |
LogChannel |
getLogChannel() |
CsvInputMeta |
getNewMetaInstance() |
org.eclipse.swt.widgets.Shell |
getShell()
Returns the
Shell of this dialog. |
TransMeta |
getTransMeta() |
String |
loadFieldsImpl(CsvInputMeta meta,
int samples) |
String |
open() |
void |
populateMeta(CsvInputMeta inputMeta) |
protected void |
setFlags() |
protected void |
updatePreview()
Load metadata from step window
|
addConnectionLine, addConnectionLine, addConnectionLine, addConnectionLine, addDatabases, addDatabases, centerButtons, createHelpButton, dispose, generateFieldMapping, getButtonAlignment, getDatabaseDialog, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getMetaStore, getModifyListenerTooltipText, getPathOf, getRepository, isBasic, isDebug, isDetailed, isRowLevel, leftAlignButtons, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, positionBottomButtons, positionBottomButtons, positionBottomRightButtons, rightAlignButtons, selectDatabase, setButtonPositions, setMetaStore, setMinimalShellHeight, setRepository, setShellImage, setSize, setSize, setSize, setSize, setTraverseOrder, storeScreenSize, toString
checkSubclass, getParent, getStyle, getText, setText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setMetaStore, setRepository
findTableItem, getFields, getFields, getFieldValues, getNewFieldNames, getParent, getPopulatedMeta, getTableItem, loadFields, loadRemainingFields, openGetFieldsSampleDataDialog, repopulateFields
getFieldNames, getFieldNamesImpl, getReader, loadFieldsImpl, logError, logError, massageFieldName
public String open()
open
in interface StepDialogInterface
protected void setFlags()
public CsvInputMeta getNewMetaInstance()
getNewMetaInstance
in interface GetFieldsCapableStepDialog<CsvInputMeta>
public void populateMeta(CsvInputMeta inputMeta)
populateMeta
in interface GetFieldsCapableStepDialog<CsvInputMeta>
public void getData()
public void getData(CsvInputMeta inputMeta, boolean copyStepname)
public void getData(CsvInputMeta inputMeta, boolean copyStepname, boolean reloadAllFields, Set<String> newFieldNames)
getData
in interface GetFieldsCapableStepDialog<CsvInputMeta>
public String[] getFieldNames(CsvInputMeta meta)
GetFieldsCapableStepDialog
getFieldNames
in interface GetFieldsCapableStepDialog<CsvInputMeta>
meta
- the StepMetaType
public TableView getFieldsTable()
getFieldsTable
in interface GetFieldsCapableStepDialog<CsvInputMeta>
TableView
containing step fieldspublic String loadFieldsImpl(CsvInputMeta meta, int samples)
loadFieldsImpl
in interface GetFieldsCapableStepDialog<CsvInputMeta>
protected void updatePreview()
protected void asyncUpdatePreview()
public org.eclipse.swt.widgets.Shell getShell()
GetFieldsCapableStepDialog
Shell
of this dialog.getShell
in interface GetFieldsCapableStepDialog<CsvInputMeta>
Shell
of this dialogpublic CsvInputAwareImportProgressDialog getCsvImportProgressDialog(CsvInputAwareMeta meta, int samples, InputStreamReader reader)
getCsvImportProgressDialog
in interface CsvInputAwareStepDialog
public LogChannel getLogChannel()
getLogChannel
in interface CsvInputAwareStepDialog
public TransMeta getTransMeta()
getTransMeta
in interface CsvInputAwareStepDialog
getTransMeta
in interface GetFieldsCapableStepDialog<CsvInputMeta>
public InputStream getInputStream(CsvInputAwareMeta meta)
CsvInputAwareStepDialog
InputStream
corresponding to the csv file, or null if the file cannot be read.getInputStream
in interface CsvInputAwareStepDialog
InputStream
corresponding to the csv file, or null if the file cannot be readCopyright © 2019 Hitachi Vantara. All rights reserved.