Package org.apache.calcite.plan.hep
Enum HepMatchOrder
- All Implemented Interfaces:
Serializable
,Comparable<HepMatchOrder>
,Constable
HepMatchOrder specifies the order of graph traversal when looking for rule
matches.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMatch in arbitrary order.Match from leaves up.Match in depth-first order.Match from root down. -
Method Summary
Modifier and TypeMethodDescriptionstatic HepMatchOrder
Returns the enum constant of this type with the specified name.static HepMatchOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARBITRARY
Match in arbitrary order. This is the default because it is efficient, and most rules don't care about order. -
BOTTOM_UP
Match from leaves up. A match attempt at a descendant precedes all match attempts at its ancestors. -
TOP_DOWN
Match from root down. A match attempt at an ancestor always precedes all match attempts at its descendants. -
DEPTH_FIRST
-
-
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
-