Class LuceneDocumentDistance
java.lang.Object
org.eclipse.rdf4j.sail.lucene.impl.LuceneDocumentResult
org.eclipse.rdf4j.sail.lucene.impl.LuceneDocumentDistance
- All Implemented Interfaces:
DocumentDistance, DocumentResult
-
Field Summary
Fields inherited from class LuceneDocumentResult
index, scoreDocModifier and TypeFieldDescriptionprotected final LuceneIndexprotected final org.apache.lucene.search.ScoreDoc -
Constructor Summary
ConstructorsConstructorDescriptionLuceneDocumentDistance(org.apache.lucene.search.ScoreDoc doc, String geoProperty, IRI units, org.locationtech.spatial4j.shape.Point origin, boolean includeContext, LuceneIndex index) -
Method Summary
Methods inherited from class LuceneDocumentResult
getDocumentModifier and TypeMethodDescriptionReturns null if the document no longer exists.
-
Constructor Details
-
LuceneDocumentDistance
public LuceneDocumentDistance(org.apache.lucene.search.ScoreDoc doc, String geoProperty, IRI units, org.locationtech.spatial4j.shape.Point origin, boolean includeContext, LuceneIndex index)
-
-
Method Details
-
getDistance
public double getDistance()- Specified by:
getDistancein interfaceDocumentDistance
-