Class GeoShapeValue

java.lang.Object
org.opensearch.index.fielddata.GeoShapeValue
Direct Known Subclasses:
GeoShapeValue.EmptyGeoShapeValue, GeoShapeValue.MissingGeoShapeValue, GeoShapeValue.StandardGeoShapeValue

public abstract class GeoShapeValue extends Object
A stateful lightweight iterator interface to read the stored form of Geometry aka LatLonShapeDocValuesField from Lucene per document. Check GeoShapeFieldMapper for details how we converted the Geometry to LatLonShapeDocValuesField
Opensearch.internal:
  • Constructor Details

    • GeoShapeValue

      protected GeoShapeValue()
      Creates a new GeoShapeValue instance
  • Method Details

    • advanceExact

      public abstract boolean advanceExact(int doc) throws IOException
      Advance this instance to the given document id
      Returns:
      true if there is a value for this document
      Throws:
      IOException
    • nextValue

      public abstract GeoShapeDocValue nextValue() throws IOException
      Return the next value associated with the current document.
      Returns:
      the next value for the current docID set to advanceExact(int).
      Throws:
      IOException