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
FieldsModifier and TypeFieldDescriptionF[]The fields to import...static final Stringstatic final String[]static final String[]static final StringFields inherited from class org.pentaho.di.trans.steps.file.BaseFileMeta
servletOutputFields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Make an exact copy of this step, make sure to explicitly copy Collections etc.abstract Stringorg.pentaho.di.core.fileinput.FileInputListgetFileInputList(org.pentaho.di.core.bowl.Bowl bowl, org.pentaho.di.core.variables.VariableSpace space) org.pentaho.di.core.fileinput.FileInputListgetFileInputList(org.pentaho.di.core.variables.VariableSpace space) String[]getFilePaths(boolean showSamples) F[]static StringgetResourceDependencies(TransMeta transMeta, StepMeta stepInfo) Get a list of all the resource dependencies that the step is depending on.voidinputFiles_fileRequired(String[] fileRequiredin) String[]voidinputFiles_includeSubFolders(String[] includeSubFoldersin) booleanMethods inherited from class org.pentaho.di.trans.steps.file.BaseFileMeta
passDataToServletOutput, writesToFileMethods 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, supportsErrorHandlingMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:StepMetaInterfaceMake an exact copy of this step, make sure to explicitly copy Collections etc.- Specified by:
clonein interfaceStepMetaInterface- Overrides:
clonein 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:BaseStepMetaGet a list of all the resource dependencies that the step is depending on.- Specified by:
getResourceDependenciesin interfaceStepMetaInterface- Overrides:
getResourceDependenciesin 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:
getFilePathsin 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
-