Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-188

Precondition Comparator to ignore files with a particular extension

    XMLWordPrintableJSON

Details

    Description

      This patch will contribute a PreConditionComparator implementation that will ignore a specific file type with a particular extension. Users would leverage it by adding e.g., something like the below to precondition-beans.xml, for example to only extract metadata from HDF files:

          <bean id="OnlyExtractHdf" lazy-init="true" class="org.apache.oodt.cas.metadata.preconditions.EndsWithComparator">
              <property name="description" value="Checks the file extension and only extracts met from those files."/>        
              <property name="compareItem">
                  <value type="java.lang.String">hdf</value>    
              </property>
              <property name="type" value="equal_to"/>
          </bean>
      

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            chrismattmann Chris A. Mattmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: