Class DenseDoubleValues

java.lang.Object
org.apache.lucene.search.DoubleValues
org.elasticsearch.index.fielddata.DenseDoubleValues

public abstract class DenseDoubleValues extends org.apache.lucene.search.DoubleValues
DoubleValues implementation that is guaranteed to have a value for every document in a reader
  • Constructor Details

    • DenseDoubleValues

      public DenseDoubleValues()
  • Method Details

    • advanceExact

      public final boolean advanceExact(int doc) throws IOException
      Specified by:
      advanceExact in class org.apache.lucene.search.DoubleValues
      Throws:
      IOException
    • doAdvanceExact

      protected abstract void doAdvanceExact(int doc) throws IOException
      Throws:
      IOException
    • asNumericDocValues

      public static org.apache.lucene.index.NumericDocValues asNumericDocValues(DenseDoubleValues in, int maxDoc, DoubleToLongFunction converter)
      Represent a DenseDoubleValues as a NumericDocValues instance
      Parameters:
      in - the DenseDoubleValues to wrap
      maxDoc - the maxDoc of the current reader
      converter - a function to convert the double-valued output of DenseDoubleValues to a long