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
Modifier and TypeFieldDescriptionprotected final org.apache.lucene.index.SortedNumericDocValues
-
Constructor Summary
ModifierConstructorDescriptionprotected
MultiPointValues
(org.apache.lucene.index.SortedNumericDocValues numericValues) Creates a newMultiPointValues
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.protected abstract PointValues<T>
Returns a single-valued view of theMultiPointValues
if possible, otherwise null.abstract T
Return 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 newMultiPointValues
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
-
getPointValues
Returns a single-valued view of theMultiPointValues
if possible, otherwise null.
-