Class CellIdSource.CellMultiValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedNumericDocValues
org.elasticsearch.index.fielddata.SortingNumericDocValues
org.elasticsearch.index.fielddata.AbstractSortingNumericDocValues
org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource.CellMultiValues
Enclosing class:
CellIdSource

protected abstract static class CellIdSource.CellMultiValues extends AbstractSortingNumericDocValues
Class representing the long-encoded grid-cells belonging to the multi-value geo-doc-values. Class must encode the values and then sort them in order to account for the cells correctly.
  • Field Details

    • precision

      protected final int precision
  • Constructor Details

  • Method Details

    • advanceExact

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

      protected abstract int advanceValue(GeoPoint target, int valuesIdx)
      Sets the appropriate long-encoded value for target in values.
      Parameters:
      target - the geo-value to encode
      valuesIdx - the index into values to set
      Returns:
      valuesIdx + 1 if value was set, valuesIdx otherwise.