java.lang.Object
org.elasticsearch.index.fielddata.MultiPointValues<GeoPoint>
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:
MultiGeoPointValues values = ..;
values.advanceExact(docId);
final int numValues = values.docValueCount();
for (int i = 0; i < numValues; i++) {
GeoPoint value = values.nextValue();
// process value
}
The set of values associated with a document might contain duplicates and
comes in a non-specified order.-
Field Summary
Fields inherited from class org.elasticsearch.index.fielddata.MultiPointValues
numericValues -
Constructor Summary
ConstructorsConstructorDescriptionMultiGeoPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected GeoPointValuesReturns a single-valued view of theMultiPointValuesif possible, otherwise null.Return the next value associated with the current document.Methods inherited from class org.elasticsearch.index.fielddata.MultiPointValues
advanceExact, docValueCount
-
Constructor Details
-
MultiGeoPointValues
public MultiGeoPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues)
-
-
Method Details
-
nextValue
Description copied from class:MultiPointValuesReturn the next value associated with the current document. This must not be called more thanMultiPointValues.docValueCount()times. Note: the returnedGeoPointmight be shared across invocations.- Specified by:
nextValuein classMultiPointValues<GeoPoint>- Returns:
- the next value for the current docID set to
MultiPointValues.advanceExact(int). - Throws:
IOException
-
getPointValues
Returns a single-valued view of theMultiPointValuesif possible, otherwise null.
-