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 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