Enum ComparisonRange.Type

  • All Implemented Interfaces:
    Serializable, Comparable<ComparisonRange.Type>
    Enclosing class:
    ComparisonRange

    public static enum ComparisonRange.Type
    extends Enum<ComparisonRange.Type>
    Comparison ranges can be divided into three types, with distinct planning behaviour:
    • Empty ranges, to which any comparison can be added.
    • Equality ranges, to which only the same (equality) comparison can be added.
    • Inequality ranges, to which any other comparison can be added.
    This behavior is defined in ComparisonRange.tryToAdd(Comparisons.Comparison).

    Furthermore, the planner uses this trichotomy of range types to determine other planning behavior. For example, an index scan must involve (from left to right) any number of equality ranges on the fields, followed by a single, optional inequality range, followed by any number of empty ranges.

    • Method Detail

      • values

        public static ComparisonRange.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ComparisonRange.Type c : ComparisonRange.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ComparisonRange.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null