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
-
public class GeoPointDistanceDocValues extends SortedNumericDoubleDocValues
-
-
Constructor Summary
Constructors Constructor Description GeoPointDistanceDocValues(org.apache.lucene.index.SortedNumericDocValues values, GeoPoint center)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvance(int target)booleanadvanceExact(int doc)Advance the iterator to exactlytargetand return whethertargethas a value.longcost()intdocID()intdocValueCount()Retrieves the number of values for the current document.intnextDoc()doublenextValue()Iterates to the next value in the current document.-
Methods inherited from class org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.SortedNumericDoubleDocValues
create, fromDoubleField, fromFloatField, unwrapSingleton
-
-
-
-
Constructor Detail
-
GeoPointDistanceDocValues
public GeoPointDistanceDocValues(org.apache.lucene.index.SortedNumericDocValues values, GeoPoint center)
-
-
Method Detail
-
nextValue
public double nextValue() throws IOExceptionDescription 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
public boolean advanceExact(int doc) throws IOExceptionDescription 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
public int nextDoc() throws IOException- Specified by:
nextDocin classorg.apache.lucene.search.DocIdSetIterator- Throws:
IOException
-
advance
public int advance(int target) throws IOException- Specified by:
advancein classorg.apache.lucene.search.DocIdSetIterator- Throws:
IOException
-
cost
public long cost()
- Specified by:
costin classorg.apache.lucene.search.DocIdSetIterator
-
-