Class CellIdSource.CellSingleValue

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.NumericDocValues
org.elasticsearch.index.fielddata.AbstractNumericDocValues
org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource.CellSingleValue
Enclosing class:
CellIdSource

protected abstract static class CellIdSource.CellSingleValue extends AbstractNumericDocValues
Class representing the long-encoded grid-cells belonging to the singleton geo-doc-values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
     
    protected long
     

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CellSingleValue(GeoPointValues geoValues, int precision)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract boolean
    advance(GeoPoint target)
    Sets the appropriate long-encoded value for target in value.
    boolean
    advanceExact(int docId)
     
    int
     
    long
     

    Methods inherited from class org.elasticsearch.index.fielddata.AbstractNumericDocValues

    advance, cost, nextDoc

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    all, docIDRunEnd, empty, intoBitSet, range, slowAdvance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • precision

      protected final int precision
    • value

      protected long value
  • Constructor Details

    • CellSingleValue

      protected CellSingleValue(GeoPointValues geoValues, int precision)
  • Method Details

    • advanceExact

      public boolean advanceExact(int docId) throws IOException
      Throws:
      IOException
    • longValue

      public long longValue() throws IOException
      Specified by:
      longValue in class org.apache.lucene.index.NumericDocValues
      Throws:
      IOException
    • advance

      protected abstract boolean advance(GeoPoint target)
      Sets the appropriate long-encoded value for target in value.
      Parameters:
      target - the geo-value to encode
      Returns:
      true if the value needs to be added, otherwise false.
    • docID

      public int docID()
      Specified by:
      docID in class org.apache.lucene.search.DocIdSetIterator