Class FieldNameMappingFilter

All Implemented Interfaces:
Serializable

public class FieldNameMappingFilter extends MetadataFilter
See Also:
  • Constructor Details

    • FieldNameMappingFilter

      public FieldNameMappingFilter()
  • Method Details

    • filter

      public void filter(Metadata metadata) throws TikaException
      Specified by:
      filter in class MetadataFilter
      Throws:
      TikaException
    • setExcludeUnmapped

      @Field public void setExcludeUnmapped(boolean excludeUnmapped)
      If this is true (default), this means that only the fields that have a "from" value in the mapper will be passed through. Otherwise, this will pass through all keys/values and mutate the keys that exist in the mappings.
      Parameters:
      excludeUnmapped -
    • setMappings

      @Field public void setMappings(Map<String,String> mappings)