Class BaseFileInputMeta<A extends BaseFileInputAdditionalField,I extends BaseFileInputFiles,F extends BaseFileField>

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 Details

  • Constructor Details

    • BaseFileInputMeta

      public BaseFileInputMeta()
  • Method Details

    • getInputFields

      public F[] getInputFields()
      Returns:
      the input fields.
    • clone

      public Object clone()
      Description copied from interface: StepMetaInterface
      Make an exact copy of this step, make sure to explicitly copy Collections etc.
      Specified by:
      clone in interface StepMetaInterface
      Overrides:
      clone in class BaseStepMeta
      Returns:
      an exact copy of this step
    • inputFiles_fileRequired

      public void inputFiles_fileRequired(String[] fileRequiredin)
      Parameters:
      fileRequiredin - The fileRequired to set.
    • inputFiles_includeSubFolders

      public String[] inputFiles_includeSubFolders()
    • inputFiles_includeSubFolders

      public void inputFiles_includeSubFolders(String[] includeSubFoldersin)
    • getRequiredFilesCode

      public static String getRequiredFilesCode(String tt)
    • 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

      public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo)
      Description copied from class: BaseStepMeta
      Get a list of all the resource dependencies that the step is depending on.
      Specified by:
      getResourceDependencies in interface StepMetaInterface
      Overrides:
      getResourceDependencies in class BaseStepMeta
      Returns:
      a list of all the resource dependencies that the step is depending on
    • getEncoding

      public abstract String getEncoding()
    • isAcceptingFilenames

      public boolean isAcceptingFilenames()
    • getAcceptingStepName

      public String getAcceptingStepName()
    • getAcceptingField

      public String getAcceptingField()
    • getFilePaths

      public String[] getFilePaths(boolean showSamples)
      Specified by:
      getFilePaths in class BaseFileMeta
      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