Class FloatRangeDocValuesField

  • All Implemented Interfaces:
    IndexableField

    public class FloatRangeDocValuesField
    extends BinaryRangeDocValuesField
    DocValues field for FloatRange. This is a single valued field per document due to being an extension of BinaryDocValuesField.
    • Field Detail

      • field

        final java.lang.String field
      • min

        final float[] min
      • max

        final float[] max
    • Constructor Detail

      • FloatRangeDocValuesField

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

      • getMin

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

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

        private static Query newSlowRangeQuery​(java.lang.String field,
                                               float[] min,
                                               float[] max,
                                               RangeFieldQuery.QueryType queryType)
      • checkArgs

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