Class ElasticsearchDocumentDistance
java.lang.Object
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentDistance
- All Implemented Interfaces:
DocumentDistance, DocumentResult
@Deprecated(since="5.3.0",
forRemoval=true)
public class ElasticsearchDocumentDistance
extends ElasticsearchDocumentResult
implements DocumentDistance
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
future release.
-
Field Summary
Fields inherited from class ElasticsearchDocumentResult
hit -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchDocumentDistance(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper, String geoPointField, IRI units, org.elasticsearch.common.geo.GeoPoint srcPoint, org.elasticsearch.common.unit.DistanceUnit unit) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiondoubleDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class ElasticsearchDocumentResult
getDocumentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DocumentResult
getDocument
-
Constructor Details
-
ElasticsearchDocumentDistance
public ElasticsearchDocumentDistance(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper, String geoPointField, IRI units, org.elasticsearch.common.geo.GeoPoint srcPoint, org.elasticsearch.common.unit.DistanceUnit unit) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getDistance
public double getDistance()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDistancein interfaceDocumentDistance
-