Module org.elasticsearch.server
Class MultiPointValues<T extends SpatialPoint>
java.lang.Object
org.elasticsearch.index.fielddata.MultiPointValues<T>
- Direct Known Subclasses:
MultiGeoPointValues
A stateful lightweight per document set of
SpatialPoint values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.lucene.index.SortedNumericDocValues -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultiPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues) Creates a newMultiPointValuesinstance -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceExact(int doc) Advance this instance to the given document idintReturn the number of geo points the current document has.abstract TReturn the next value associated with the current document.
-
Field Details
-
numericValues
protected final org.apache.lucene.index.SortedNumericDocValues numericValues
-
-
Constructor Details
-
MultiPointValues
protected MultiPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues) Creates a newMultiPointValuesinstance
-
-
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 returnedGeoPointmight be shared across invocations.- Returns:
- the next value for the current docID set to
advanceExact(int). - Throws:
IOException
-