public abstract class MultiGeoPointValues
extends java.lang.Object
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.| Modifier | Constructor | Description |
|---|---|---|
protected |
MultiGeoPointValues() |
Creates a new
MultiGeoPointValues instance |
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
advanceExact(int doc) |
Advance this instance to the given document id
|
abstract int |
docValueCount() |
Return the number of geo points the current document has.
|
abstract GeoPoint |
nextValue() |
Return the next value associated with the current document.
|
protected MultiGeoPointValues()
MultiGeoPointValues instancepublic abstract boolean advanceExact(int doc)
throws java.io.IOException
java.io.IOExceptionpublic abstract int docValueCount()
public abstract GeoPoint nextValue() throws java.io.IOException
docValueCount() times.
Note: the returned GeoPoint might be shared across invocations.advanceExact(int).java.io.IOException