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 Detail

      • field

        final java.lang.String field
      • min

        final double[] min
      • max

        final double[] max
    • Constructor Detail

      • DoubleRangeDocValuesField

        public DoubleRangeDocValuesField​(java.lang.String field,
                                         double[] min,
                                         double[] max)
        Sole constructor.
    • Method Detail

      • 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​(java.lang.String field,
                                               double[] min,
                                               double[] max,
                                               RangeFieldQuery.QueryType queryType)
      • checkArgs

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