Class BaseFileInputStepUtils


  • public class BaseFileInputStepUtils
    extends Object
    Utils for file-based input steps.
    Author:
    Alexander Buloichik
    • Constructor Detail

      • BaseFileInputStepUtils

        public BaseFileInputStepUtils()
    • Method Detail

      • handleMissingFiles

        public static void handleMissingFiles​(org.pentaho.di.core.fileinput.FileInputList files,
                                              org.pentaho.di.core.logging.LogChannelInterface log,
                                              boolean isErrorIgnored,
                                              FileErrorHandler errorHandler)
                                       throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • addValueMeta

        public static int addValueMeta​(String stepName,
                                       org.pentaho.di.core.row.RowMetaInterface rowMeta,
                                       String fieldName)
        Adds String value meta with given name if not present and returns index
        Parameters:
        rowMeta -
        fieldName -
        Returns:
        Index in row meta of value meta with fieldName