Class MultiPointValues<T extends SpatialPoint>

java.lang.Object
org.elasticsearch.index.fielddata.MultiPointValues<T>
Direct Known Subclasses:
MultiGeoPointValues

public abstract class MultiPointValues<T extends SpatialPoint> extends Object
A stateful lightweight per document set of SpatialPoint values.
  • Field Details

    • numericValues

      protected final org.apache.lucene.index.SortedNumericDocValues numericValues
  • Constructor Details

    • MultiPointValues

      protected MultiPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues)
      Creates a new MultiPointValues instance
  • Method Details

    • advanceExact

      public 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
    • docValueCount

      public int docValueCount()
      Return the number of geo points the current document has.
    • nextValue

      public abstract T nextValue() throws IOException
      Return the next value associated with the current document. This must not be called more than docValueCount() times. Note: the returned GeoPoint might be shared across invocations.
      Returns:
      the next value for the current docID set to advanceExact(int).
      Throws:
      IOException
    • getPointValues

      protected abstract PointValues<T> getPointValues()
      Returns a single-valued view of the MultiPointValues if possible, otherwise null.