public class FieldNameMappingFilter extends MetadataFilter
Constructor and Description |
---|
FieldNameMappingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
filter(Metadata metadata) |
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. |
void |
setMappings(Map<String,String> mappings) |
load
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
public void filter(Metadata metadata) throws TikaException
filter
in class MetadataFilter
TikaException
@Field public void setExcludeUnmapped(boolean excludeUnmapped)
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.excludeUnmapped
- Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.