public class CsvInputDialog extends BaseStepDialog implements StepDialogInterface, GetFieldsCapableStepDialog<CsvInputMeta>, CsvInputAwareStepDialog
BaseStepDialog.FieldsChoiceDialogProviderbackupChanged, 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, wStepnamelogger| 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, toStringcheckSubclass, getParent, getStyle, getText, setTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetMetaStore, setRepositoryfindTableItem, getFields, getFields, getFieldValues, getNewFieldNames, getParent, getPopulatedMeta, getTableItem, loadFields, loadRemainingFields, openGetFieldsSampleDataDialog, repopulateFieldsgetFieldNames, getFieldNamesImpl, getReader, loadFieldsImpl, logError, logError, massageFieldNamepublic String open()
open in interface StepDialogInterfaceprotected 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)
GetFieldsCapableStepDialoggetFieldNames in interface GetFieldsCapableStepDialog<CsvInputMeta>meta - the StepMetaTypepublic 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()
GetFieldsCapableStepDialogShell of this dialog.getShell in interface GetFieldsCapableStepDialog<CsvInputMeta>Shell of this dialogpublic CsvInputAwareImportProgressDialog getCsvImportProgressDialog(CsvInputAwareMeta meta, int samples, InputStreamReader reader)
getCsvImportProgressDialog in interface CsvInputAwareStepDialogpublic LogChannel getLogChannel()
getLogChannel in interface CsvInputAwareStepDialogpublic TransMeta getTransMeta()
getTransMeta in interface CsvInputAwareStepDialoggetTransMeta in interface GetFieldsCapableStepDialog<CsvInputMeta>public InputStream getInputStream(CsvInputAwareMeta meta)
CsvInputAwareStepDialogInputStream corresponding to the csv file, or null if the file cannot be read.getInputStream in interface CsvInputAwareStepDialogInputStream corresponding to the csv file, or null if the file cannot be readCopyright © 2019 Hitachi Vantara. All rights reserved.