Class DoubleRangeDocValuesField

All Implemented Interfaces:
IndexableField

public class DoubleRangeDocValuesField extends BinaryRangeDocValuesField
DocValues field for DoubleRange. This is a single valued field i.e. can have only one value per document due to being an extension of BinaryDocValuesField.
  • Field Details

    • field

      final String field
    • min

      final double[] min
    • max

      final double[] max
  • Constructor Details

    • DoubleRangeDocValuesField

      public DoubleRangeDocValuesField(String field, double[] min, double[] max)
      Sole constructor.
  • Method Details

    • getMin

      public double getMin(int dimension)
      Get the minimum value for the given dimension.
    • getMax

      public double getMax(int dimension)
      Get the maximum value for the given dimension.
    • newSlowRangeQuery

      private static Query newSlowRangeQuery(String field, double[] min, double[] max, RangeFieldQuery.QueryType queryType)
    • newSlowIntersectsQuery

      public static Query newSlowIntersectsQuery(String field, double[] min, double[] max)
      Create a new range query that finds all ranges that intersect using doc values. NOTE: This doesn't leverage indexing and may be slow.
      See Also:
    • checkArgs

      private static void checkArgs(double[] min, double[] max)
      validate the arguments