Enum ComparisonRange.Type
- java.lang.Object
-
- java.lang.Enum<ComparisonRange.Type>
-
- com.apple.foundationdb.record.query.plan.temp.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.
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTY
EQUALITY
INEQUALITY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComparisonRange.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ComparisonRange.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final ComparisonRange.Type EMPTY
-
EQUALITY
public static final ComparisonRange.Type EQUALITY
-
INEQUALITY
public static final ComparisonRange.Type INEQUALITY
-
-
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 nameNullPointerException
- if the argument is null
-
-