Class IntRangeDocValuesField

  • All Implemented Interfaces:
    IndexableField

    public class IntRangeDocValuesField
    extends BinaryRangeDocValuesField
    DocValues field for IntRange. 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 int[] min
      • max

        final int[] max
    • Constructor Detail

      • IntRangeDocValuesField

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

      • getMin

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

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

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

        public static Query newSlowIntersectsQuery​(java.lang.String field,
                                                   int[] min,
                                                   int[] 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:
        IntRange.newIntersectsQuery(java.lang.String, int[], int[])
      • checkArgs

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