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 and Description |
---|---|
protected |
MultiGeoPointValues()
Creates a new
MultiGeoPointValues instance |
Modifier and Type | Method and Description |
---|---|
abstract int |
count()
Return the number of geo points the current document has.
|
abstract void |
setDocument(int docId)
Sets iteration to the specified docID.
|
abstract GeoPoint |
valueAt(int i)
Return the
i-th value associated with the current document. |
protected MultiGeoPointValues()
MultiGeoPointValues
instancepublic abstract void setDocument(int docId)
docId
- document IDvalueAt(int)
,
count()
public abstract int count()
public abstract GeoPoint valueAt(int i)
i-th
value associated with the current document.
Behavior is undefined when i
is undefined or greater than
or equal to count()
.
Note: the returned GeoPoint
might be shared across invocations.setDocument(int)
.