public abstract class BaseFileInputStep<M extends BaseFileInputMeta<?,?,?>,D extends BaseFileInputStepData> extends BaseStep implements IBaseFileInputStepControl
| 限定符和类型 | 字段和说明 |
|---|---|
protected D |
data |
protected M |
meta |
deadLockCounter, extensionDataMap, first, linesInput, linesOutput, linesRead, linesRejected, linesSkipped, linesUpdated, linesWritten, log, metaStore, repository, rowListeners, safeStopped, terminator, terminator_rows, variables| 构造器和说明 |
|---|
BaseFileInputStep(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkFeedback(long lines)
Check feedback.
|
protected void |
closeLastFile()
Close last opened file/
|
protected abstract IBaseFileInputReader |
createReader(M meta,
D data,
org.apache.commons.vfs2.FileObject file)
Create reader for specific file.
|
void |
dispose(StepMetaInterface smi,
StepDataInterface sdi)
Dispose step.
|
boolean |
failAfterBadFile(String errorMsg) |
protected void |
fillFileAdditionalFields(D data,
org.apache.commons.vfs2.FileObject file)
Prepare file-dependent data for fill additional fields.
|
protected boolean |
handleOpenFileException(Exception e) |
protected abstract boolean |
init()
Content-dependent initialization.
|
boolean |
init(StepMetaInterface smi,
StepDataInterface sdi)
Initialize step before execute.
|
protected boolean |
openNextFile()
Open next VFS file for processing.
|
protected void |
prepareToRowProcessing()
Prepare to process.
|
boolean |
processRow(StepMetaInterface smi,
StepDataInterface sdi)
Process next row.
|
addResultFile, addRowListener, addRowSetToInputRowSets, addRowSetToOutputRowSets, addStepListener, batchComplete, buildLog, canProcessOneRow, cleanup, clearInputRowSets, clearOutputRowSets, closeQuietly, copyVariablesFrom, decrementLinesRead, decrementLinesWritten, dispatch, environmentSubstitute, environmentSubstitute, fieldSubstitute, findInputRowSet, findInputRowSet, findOutputRowSet, findOutputRowSet, getBooleanValueOfVariable, getClusterSize, getContainerObjectId, getCopy, getCurrentInputRowSetNr, getCurrentOutputRowSetNr, getDispatcher, getErrorRowMeta, getErrors, getExtensionDataMap, getFilename, getFirstInputRowSet, getInputRowMeta, getInputRowSets, getLinesInput, getLinesOutput, getLinesRead, getLinesRejected, getLinesSkipped, getLinesUpdated, getLinesWritten, getLogChannel, getLogChannelId, getLogFields, getLogLevel, getMetaStore, getNextClassNr, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getOutputRowSets, getParent, getParentVariableSpace, getPartitionID, getPartitionTargets, getPreviewRowMeta, getProcessed, getRegistrationDate, getRemoteInputSteps, getRemoteOutputSteps, getRepartitioning, getRepository, getRepositoryDirectory, getResultFiles, getRow, getRowFrom, getRowHandler, getRowListeners, getRuntime, getServerSockets, getSlaveNr, getSocketRepository, getStatus, getStatusDescription, getStepDataInterface, getStepID, getStepListeners, getStepMeta, getStepMetaInterface, getStepname, getTrans, getTransMeta, getTypeId, getUniqueStepCountAcrossSlaves, getUniqueStepNrAcrossSlaves, getVariable, getVariable, handleGetRowFrom, handlePutRowTo, identifyErrorOutput, incrementLinesInput, incrementLinesOutput, incrementLinesRead, incrementLinesRejected, incrementLinesSkipped, incrementLinesUpdated, incrementLinesWritten, initBeforeStart, initializeVariablesFrom, injectVariables, isBasic, isDebug, isDetailed, isDistributed, isForcingSeparateLogging, isGatheringMetrics, isInitialising, isMapping, isPartitioned, isPaused, isRowLevel, isRunning, isSafeStopped, isStopped, isUsingThreadPriorityManagment, listVariables, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, logSummary, markStart, markStop, openRemoteInputStepSocketsOnce, openRemoteOutputStepSocketsOnce, outputIsDone, pauseRunning, putError, putRow, putRowTo, removeRowListener, resumeRunning, rowsetInputSize, rowsetOutputSize, safeModeChecking, safeModeChecking, setCarteObjectId, setCopy, setCurrentInputRowSetNr, setCurrentOutputRowSetNr, setDistributed, setErrorRowMeta, setErrors, setForcingSeparateLogging, setGatheringMetrics, setInputRowMeta, setInputRowSets, setInternalVariables, setLinesInput, setLinesOutput, setLinesRead, setLinesRejected, setLinesSkipped, setLinesUpdated, setLinesWritten, setLogLevel, setMetaStore, setOutputDone, setOutputRowSets, setParentVariableSpace, setPartitioned, setPartitionID, setPartitionTargets, setPaused, setPaused, setPreviewRowMeta, setRepartitioning, setRepository, setRowHandler, setRunning, setSafeStopped, setServerSockets, setSocketRepository, setStepDataInterface, setStepListeners, setStepMeta, setStepMetaInterface, setStepname, setStopped, setTransMeta, setUsingThreadPriorityManagment, setVariable, shareVariablesWith, stopAll, stopRunning, stopRunning, swapFirstInputRowSetIfExists, toString, verifyInputDeadLock, waitUntilTransformationIsStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrors, getLinesInput, getLinesWritten, incrementLinesInput, incrementLinesUpdated, putRow, setErrors, stopAllsubStatusesprotected M extends BaseFileInputMeta<?,?,?> meta
protected D extends BaseFileInputStepData data
public BaseFileInputStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans)
protected abstract boolean init()
protected abstract IBaseFileInputReader createReader(M meta, D data, org.apache.commons.vfs2.FileObject file) throws Exception
Exceptionpublic boolean init(StepMetaInterface smi, StepDataInterface sdi)
init 在接口中 StepInterfaceinit 在类中 BaseStepsmi - The metadata to work withsdi - The data to initializeprotected boolean openNextFile()
protected boolean handleOpenFileException(Exception e)
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws org.pentaho.di.core.exception.KettleException
processRow 在接口中 StepInterfaceprocessRow 在类中 BaseStepsmi - The steps metadata to work withsdi - The steps temporary working data to work with (database connections, result sets, caches, temporary
variables, etc.)org.pentaho.di.core.exception.KettleExceptionprotected void prepareToRowProcessing()
throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic boolean checkFeedback(long lines)
BaseStepcheckFeedback 在接口中 IBaseFileInputStepControlcheckFeedback 在类中 BaseSteplines - the linesprotected void closeLastFile()
public void dispose(StepMetaInterface smi, StepDataInterface sdi)
dispose 在接口中 StepInterfacedispose 在类中 BaseStepsmi - The metadata to work withsdi - The data to dispose ofpublic boolean failAfterBadFile(String errorMsg)
failAfterBadFile 在接口中 IBaseFileInputStepControlerrorMsg - Message to send to rejected row if enabledprotected void fillFileAdditionalFields(D data, org.apache.commons.vfs2.FileObject file) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemExceptionCopyright © 2024 Hitachi Vantara. All rights reserved.