Class GeoPointDistanceDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.SortedNumericDoubleDocValues
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.GeoPointDistanceDocValues
-
Field Summary
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
ConstructorsConstructorDescriptionGeoPointDistanceDocValues(org.apache.lucene.index.SortedNumericDocValues values, GeoPoint center) -
Method Summary
Modifier and TypeMethodDescriptionintadvance(int target) booleanadvanceExact(int doc) Advance the iterator to exactlytargetand return whethertargethas a value.longcost()intdocID()intRetrieves the number of values for the current document.intnextDoc()doubleIterates to the next value in the current document.Methods inherited from class org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.SortedNumericDoubleDocValues
create, fromDoubleField, fromFloatField, unwrapSingletonMethods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Constructor Details
-
GeoPointDistanceDocValues
public GeoPointDistanceDocValues(org.apache.lucene.index.SortedNumericDocValues values, GeoPoint center)
-
-
Method Details
-
nextValue
Description copied from class:SortedNumericDoubleDocValuesIterates to the next value in the current document. Do not call this more thanSortedNumericDoubleDocValues.docValueCount()times for the document.- Specified by:
nextValuein classSortedNumericDoubleDocValues- Returns:
- next value
- Throws:
IOException
-
docValueCount
public int docValueCount()Description copied from class:SortedNumericDoubleDocValuesRetrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afterSortedNumericDoubleDocValues.advanceExact(int)returnedfalse.- Specified by:
docValueCountin classSortedNumericDoubleDocValues- Returns:
- value count
-
advanceExact
Description copied from class:SortedNumericDoubleDocValuesAdvance the iterator to exactlytargetand return whethertargethas a value.targetmust be greater than or equal to the current doc ID and must be a valid doc ID, ie. ≥ 0 and <maxDoc.- Specified by:
advanceExactin classSortedNumericDoubleDocValues- Parameters:
doc- the target- Returns:
- the next value
- Throws:
IOException
-
docID
public int docID()- Specified by:
docIDin classorg.apache.lucene.search.DocIdSetIterator
-
nextDoc
- Specified by:
nextDocin classorg.apache.lucene.search.DocIdSetIterator- Throws:
IOException
-
advance
- Specified by:
advancein classorg.apache.lucene.search.DocIdSetIterator- Throws:
IOException
-
cost
public long cost()- Specified by:
costin classorg.apache.lucene.search.DocIdSetIterator
-