Enum Class OptimizerMode
- All Implemented Interfaces:
Serializable
,Comparable<OptimizerMode>
,Constable
Modes of operations for a master optimizer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAggressive mode, run close to the end of pipeline.Regular mode.Unfriendly mode, run at the end of pipeline. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
meetsRequirement
(OptimizerMode requiredMode) static OptimizerMode
Returns the enum constant of this class with the specified name.static OptimizerMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Regular mode.Standard mode for optimizers, they may be called without restrictions.
-
AGGRESSIVE
Aggressive mode, run close to the end of pipeline.Some optimizations that may counter other optimizers from performing as intended are enabled.
-
UNFRIENDLY
Unfriendly mode, run at the end of pipeline.Some optimizations that will counter other optimizers from performing as intended are enabled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAggressive
public boolean isAggressive() -
isUnfriendly
public boolean isUnfriendly() -
meetsRequirement
-