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 the
QueryEngineImpl
on how to act with respect of the SQL2
optimisation.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWill force the computed alternate query to be executed.Will execute the cheapest (default).Will use the original SQL2 query. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
CHEAPEST
Will execute the cheapest (default). -
ORIGINAL
Will use the original SQL2 query. -
ALTERNATIVE
Will force the computed alternate query to be executed. If available.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-