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) |
loadbuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettingspublic void filter(Metadata metadata) throws TikaException
filter in class MetadataFilterTikaException@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–2021 The Apache Software Foundation. All rights reserved.