java.lang.Object
org.apache.lucene.search.DoubleValues
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.NumericDoubleValues

public abstract class NumericDoubleValues extends org.apache.lucene.search.DoubleValues
A per-document numeric value.

Copied and adapted from org.elasticsearch.index.fielddata.NumericDoubleValues class of Elasticsearch project.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NumericDoubleValues
    An empty NumericDoubleValues instance that always returns false from DoubleValues.advanceExact(int)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromField(org.apache.lucene.index.NumericDocValues values, LongToDoubleFunction decoder)
     
    org.apache.lucene.index.NumericDocValues
    Returns numeric docvalues view of raw double bits
    org.apache.lucene.index.NumericDocValues
    Returns numeric docvalues view of raw float bits

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

    advanceExact, doubleValue, withDefault

    Methods inherited from class java.lang.Object

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

    • EMPTY

      public static final NumericDoubleValues EMPTY
      An empty NumericDoubleValues instance that always returns false from DoubleValues.advanceExact(int)
  • Constructor Details

    • NumericDoubleValues

      protected NumericDoubleValues()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • getRawDoubleValues

      public org.apache.lucene.index.NumericDocValues getRawDoubleValues()
      Returns numeric docvalues view of raw double bits
      Returns:
      numeric
    • getRawFloatValues

      public org.apache.lucene.index.NumericDocValues getRawFloatValues()
      Returns numeric docvalues view of raw float bits
      Returns:
      numeric
    • fromField

      public static NumericDoubleValues fromField(org.apache.lucene.index.NumericDocValues values, LongToDoubleFunction decoder)