java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedNumericDocValues

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

    • precision

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