Package org.pentaho.di.trans.steps.file
Class BaseFileInputMeta<A extends BaseFileInputAdditionalField,I extends BaseFileInputFiles,F extends BaseFileField>
java.lang.Object
org.pentaho.di.trans.step.BaseStepMeta
org.pentaho.di.trans.steps.file.BaseFileMeta
org.pentaho.di.trans.steps.file.BaseFileInputMeta<A,I,F>
- All Implemented Interfaces:
Cloneable
,StepAttributesInterface
,StepMetaInterface
- Direct Known Subclasses:
TextFileInputMeta
public abstract class BaseFileInputMeta<A extends BaseFileInputAdditionalField,I extends BaseFileInputFiles,F extends BaseFileField>
extends BaseFileMeta
Base meta for file-based input steps.
- Author:
- Alexander Buloichik
-
Field Summary
Modifier and TypeFieldDescriptionF[]
The fields to import...static final String
static final String[]
static final String[]
static final String
Fields inherited from class org.pentaho.di.trans.steps.file.BaseFileMeta
servletOutput
Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Make an exact copy of this step, make sure to explicitly copy Collections etc.abstract String
org.pentaho.di.core.fileinput.FileInputList
getFileInputList
(org.pentaho.di.core.bowl.Bowl bowl, org.pentaho.di.core.variables.VariableSpace space) org.pentaho.di.core.fileinput.FileInputList
getFileInputList
(org.pentaho.di.core.variables.VariableSpace space) String[]
getFilePaths
(boolean showSamples) F[]
static String
getResourceDependencies
(TransMeta transMeta, StepMeta stepInfo) Get a list of all the resource dependencies that the step is depending on.void
inputFiles_fileRequired
(String[] fileRequiredin) String[]
void
inputFiles_includeSubFolders
(String[] includeSubFoldersin) boolean
Methods inherited from class org.pentaho.di.trans.steps.file.BaseFileMeta
passDataToServletOutput, writesToFile
Methods inherited from class org.pentaho.di.trans.step.BaseStepMeta
analyseImpact, analyseImpact, cancelQueries, check, check, check, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta, supportsErrorHandling
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.di.trans.step.StepMetaInterface
analyseImpact, analyseImpact, cancelQueries, check, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getSQLStatements, getSQLStatements, getStep, getStepData, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, loadXML, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setDefault, setParentStepMeta, supportsErrorHandling
-
Field Details
-
RequiredFilesCode
-
NO
- See Also:
-
YES
- See Also:
-
RequiredFilesDesc
-
inputFiles
-
inputFields
The fields to import... -
errorHandling
-
additionalOutputFields
-
-
Constructor Details
-
BaseFileInputMeta
public BaseFileInputMeta()
-
-
Method Details
-
getInputFields
- Returns:
- the input fields.
-
clone
Description copied from interface:StepMetaInterface
Make an exact copy of this step, make sure to explicitly copy Collections etc.- Specified by:
clone
in interfaceStepMetaInterface
- Overrides:
clone
in classBaseStepMeta
- Returns:
- an exact copy of this step
-
inputFiles_fileRequired
- Parameters:
fileRequiredin
- The fileRequired to set.
-
inputFiles_includeSubFolders
-
inputFiles_includeSubFolders
-
getRequiredFilesCode
-
getFileInputList
public org.pentaho.di.core.fileinput.FileInputList getFileInputList(org.pentaho.di.core.variables.VariableSpace space) -
getFileInputList
public org.pentaho.di.core.fileinput.FileInputList getFileInputList(org.pentaho.di.core.bowl.Bowl bowl, org.pentaho.di.core.variables.VariableSpace space) -
getResourceDependencies
Description copied from class:BaseStepMeta
Get a list of all the resource dependencies that the step is depending on.- Specified by:
getResourceDependencies
in interfaceStepMetaInterface
- Overrides:
getResourceDependencies
in classBaseStepMeta
- Returns:
- a list of all the resource dependencies that the step is depending on
-
getEncoding
-
isAcceptingFilenames
public boolean isAcceptingFilenames() -
getAcceptingStepName
-
getAcceptingField
-
getFilePaths
- Specified by:
getFilePaths
in classBaseFileMeta
- Parameters:
showSamples
- determines whether the paths being returned are dummy samples or the "template" representation. The samples woulc include things like sample step number, partition number etc ( filename_0_1.txt) , while the non-sample path would include a token ( filename_<step>_<partition>.<extension>)- Returns:
- An array of file paths
-