Class ElasticsearchDocumentDistance
java.lang.Object
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentDistance
- All Implemented Interfaces:
DocumentDistance, DocumentResult
public class ElasticsearchDocumentDistance
extends ElasticsearchDocumentResult
implements DocumentDistance
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchDocumentDistance(co.elastic.clients.elasticsearch.core.search.Hit<Map<String, Object>> hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper, String geoPointField, IRI units, double srcLat, double srcLon) -
Method Summary
Methods inherited from class ElasticsearchDocumentResult
getDocumentModifier and TypeMethodDescriptionReturns null if the document no longer exists.
-
Constructor Details
-
ElasticsearchDocumentDistance
public ElasticsearchDocumentDistance(co.elastic.clients.elasticsearch.core.search.Hit<Map<String, Object>> hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper, String geoPointField, IRI units, double srcLat, double srcLon)
-
-
Method Details
-
getDistance
public double getDistance()- Specified by:
getDistancein interfaceDocumentDistance
-