org.eigenbase.relopt.hep
Enum HepMatchOrder

java.lang.Object
  extended by java.lang.Enum<HepMatchOrder>
      extended by org.eigenbase.relopt.hep.HepMatchOrder
All Implemented Interfaces:
Serializable, Comparable<HepMatchOrder>

public enum HepMatchOrder
extends Enum<HepMatchOrder>

HepMatchOrder specifies the order of graph traversal when looking for rule matches.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/relopt/hep/HepMatchOrder.java#8 $
Author:
John V. Sichi

Enum Constant Summary
ARBITRARY
          Match in arbitrary order.
BOTTOM_UP
          Match from leaves up.
TOP_DOWN
          Match from root down.
 
Method Summary
static HepMatchOrder valueOf(String name)
          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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARBITRARY

public static final HepMatchOrder ARBITRARY
Match in arbitrary order. This is the default because it is the most efficient, and most rules don't care about order.


BOTTOM_UP

public static final HepMatchOrder BOTTOM_UP
Match from leaves up. A match attempt at a descendant precedes all match attempts at its ancestors.


TOP_DOWN

public static final HepMatchOrder TOP_DOWN
Match from root down. A match attempt at an ancestor always precedes all match attempts at its descendants.

Method Detail

values

public static final HepMatchOrder[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(HepMatchOrder c : HepMatchOrder.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static HepMatchOrder 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 name