Package org.apache.tika.metadata.filter
Class FieldNameMappingFilter
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.metadata.filter.MetadataFilter
org.apache.tika.metadata.filter.FieldNameMappingFilter
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetExcludeUnmapped(boolean excludeUnmapped) If this istrue(default), this means that only the fields that have a "from" value in the mapper will be passed through.voidsetMappings(Map<String, String> mappings) Methods inherited from class org.apache.tika.metadata.filter.MetadataFilter
loadMethods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
Constructor Details
-
FieldNameMappingFilter
public FieldNameMappingFilter()
-
-
Method Details
-
filter
- Specified by:
filterin classMetadataFilter- Throws:
TikaException
-
setExcludeUnmapped
If this istrue(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
-