Package org.apache.jackrabbit.oak.query
Enum QueryEngineImpl.QuerySelectionMode
- java.lang.Object
-
- java.lang.Enum<QueryEngineImpl.QuerySelectionMode>
-
- org.apache.jackrabbit.oak.query.QueryEngineImpl.QuerySelectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryEngineImpl.QuerySelectionMode>
- Enclosing class:
- QueryEngineImpl
public static enum QueryEngineImpl.QuerySelectionMode extends Enum<QueryEngineImpl.QuerySelectionMode>
Used to instruct theQueryEngineImpl
on how to act with respect of the SQL2 optimisation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATIVE
Will force the computed alternate query to be executed.CHEAPEST
Will execute the cheapest (default).ORIGINAL
Will use the original SQL2 query.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryEngineImpl.QuerySelectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryEngineImpl.QuerySelectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHEAPEST
public static final QueryEngineImpl.QuerySelectionMode CHEAPEST
Will execute the cheapest (default).
-
ORIGINAL
public static final QueryEngineImpl.QuerySelectionMode ORIGINAL
Will use the original SQL2 query.
-
ALTERNATIVE
public static final QueryEngineImpl.QuerySelectionMode ALTERNATIVE
Will force the computed alternate query to be executed. If available.
-
-
Method Detail
-
values
public static QueryEngineImpl.QuerySelectionMode[] 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 (QueryEngineImpl.QuerySelectionMode c : QueryEngineImpl.QuerySelectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryEngineImpl.QuerySelectionMode 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
-
-