diff options
Diffstat (limited to 'core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java')
-rw-r--r-- | core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java b/core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java index 8e8c8e67c9..8a679f18cf 100644 --- a/core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java +++ b/core/src/main/java/org/elasticsearch/index/fielddata/GeoPointValues.java @@ -21,17 +21,23 @@ package org.elasticsearch.index.fielddata; import org.elasticsearch.common.geo.GeoPoint; +import java.io.IOException; + /** * Per-document geo-point values. */ public abstract class GeoPointValues { /** - * Get the {@link GeoPoint} associated with <code>docID</code>. + * Advance this instance to the given document id + * @return true if there is a value for this document + */ + public abstract boolean advanceExact(int doc) throws IOException; + + /** + * Get the {@link GeoPoint} associated with the current document. * The returned {@link GeoPoint} might be reused across calls. - * If the given <code>docID</code> does not have a value then the returned - * geo point mught have both latitude and longitude set to 0. */ - public abstract GeoPoint get(int docID); + public abstract GeoPoint geoPointValue(); } |