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
IfMetadatacontains aTikaCoreProperties.LATITUDEand 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 voidfilter(Metadata metadata)StringgetGeoPointFieldName()voidsetGeoPointFieldName(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
-
getGeoPointFieldName
public String getGeoPointFieldName()
-
filter
public void filter(Metadata metadata) throws TikaException
- Specified by:
filterin classMetadataFilter- Throws:
TikaException
-
-