Package org.apache.tika.metadata.filter
Class GeoPointMetadataFilter
- java.lang.Object
-
- org.apache.tika.config.ConfigBase
-
- org.apache.tika.metadata.filter.MetadataFilter
-
- org.apache.tika.metadata.filter.GeoPointMetadataFilter
-
- All Implemented Interfaces:
Serializable
public class GeoPointMetadataFilter extends MetadataFilter
IfMetadata
contains aTikaCoreProperties.LATITUDE
and aTikaCoreProperties.LONGITUDE
, this filter concatenates those with a comma in the order LATITUDE,LONGITUDE. If you need any other mappings, please open a ticket on our JIRA.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoPointMetadataFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Metadata metadata)
void
setGeoPointFieldName(String geoPointFieldName)
Set the field for the concatenated LATITUDE,LONGITUDE string.-
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
-
setGeoPointFieldName
@Field public void setGeoPointFieldName(String geoPointFieldName)
Set the field for the concatenated LATITUDE,LONGITUDE string. The default if &dquot;location&dquot;- Parameters:
geoPointFieldName
- field name to use for the geopoint field
-
filter
public void filter(Metadata metadata) throws TikaException
- Specified by:
filter
in classMetadataFilter
- Throws:
TikaException
-
-