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
public class FieldNameMappingFilter extends MetadataFilter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldNameMappingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Metadata metadata)
Map<String,String>
getMappins()
void
setExcludeUnmapped(boolean excludeUnmapped)
If this istrue
(default), this means that only the fields that have a "from" value in the mapper will be passed through.void
setMappings(Map<String,String> mappings)
String
toString()
-
Methods inherited from class org.apache.tika.metadata.filter.MetadataFilter
load
-
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
-
-
-
-
Method Detail
-
filter
public void filter(Metadata metadata) throws TikaException
- Specified by:
filter
in classMetadataFilter
- Throws:
TikaException
-
setExcludeUnmapped
@Field public void setExcludeUnmapped(boolean excludeUnmapped)
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
-
-
-