java.lang.Object
org.elasticsearch.index.fielddata.MultiGeoPointValues
A stateful lightweight per document set of
GeoPoint
values.
To iterate over values in a document use the following pattern:
GeoPointValues values = ..; values.setDocId(docId); final int numValues = values.count(); for (int i = 0; i < numValues; i++) { GeoPoint value = values.valueAt(i); // process value }The set of values associated with a document might contain duplicates and comes in a non-specified order.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiGeoPointValues
(org.apache.lucene.index.SortedNumericDocValues numericValues) Creates a newMultiGeoPointValues
instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
advanceExact
(int doc) Advance this instance to the given document idint
Return the number of geo points the current document has.Return the next value associated with the current document.
-
Constructor Details
-
MultiGeoPointValues
public MultiGeoPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues) Creates a newMultiGeoPointValues
instance
-
-
Method Details
-
advanceExact
Advance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
IOException
-
docValueCount
public int docValueCount()Return the number of geo points the current document has. -
nextValue
Return the next value associated with the current document. This must not be called more thandocValueCount()
times. Note: the returnedGeoPoint
might be shared across invocations.- Returns:
- the next value for the current docID set to
advanceExact(int)
. - Throws:
IOException
-