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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.lucene.index.SortedNumericDocValues
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MultiPointValues(org.apache.lucene.index.SortedNumericDocValues numericValues)
    Creates a new MultiPointValues instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    advanceExact(int doc)
    Advance this instance to the given document id
    int
    Return the number of geo points the current document has.
    abstract T
    Return the next value associated with the current document.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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