org.eigenbase.relopt.volcano
Class VolcanoPlannerTraitTest.AltTrait

java.lang.Object
  extended by org.eigenbase.relopt.volcano.VolcanoPlannerTraitTest.AltTrait
All Implemented Interfaces:
RelTrait
Enclosing class:
VolcanoPlannerTraitTest

private static class VolcanoPlannerTraitTest.AltTrait
extends Object
implements RelTrait


Field Summary
private  String description
           
private  int ordinal
           
private  VolcanoPlannerTraitTest.AltTraitDef traitDef
           
 
Constructor Summary
private VolcanoPlannerTraitTest.AltTrait(VolcanoPlannerTraitTest.AltTraitDef traitDef, String description)
           
 
Method Summary
 boolean equals(Object other)
          See note about equals() and hashCode().
 RelTraitDef getTraitDef()
          Returns the RelTraitDef that defines this RelTrait.
 int hashCode()
          See note about equals() and hashCode().
 String toString()
          Returns a succinct name for this trait.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

traitDef

private final VolcanoPlannerTraitTest.AltTraitDef traitDef

ordinal

private final int ordinal

description

private final String description
Constructor Detail

VolcanoPlannerTraitTest.AltTrait

private VolcanoPlannerTraitTest.AltTrait(VolcanoPlannerTraitTest.AltTraitDef traitDef,
                                         String description)
Method Detail

getTraitDef

public RelTraitDef getTraitDef()
Description copied from interface: RelTrait
Returns the RelTraitDef that defines this RelTrait.

Specified by:
getTraitDef in interface RelTrait
Returns:
the RelTraitDef that defines this RelTrait

equals

public boolean equals(Object other)
Description copied from interface: RelTrait
See note about equals() and hashCode().

Specified by:
equals in interface RelTrait
Overrides:
equals in class Object

hashCode

public int hashCode()
Description copied from interface: RelTrait
See note about equals() and hashCode().

Specified by:
hashCode in interface RelTrait
Overrides:
hashCode in class Object

toString

public String toString()
Description copied from interface: RelTrait
Returns a succinct name for this trait. The planner may use this String to describe the trait.

Specified by:
toString in interface RelTrait
Overrides:
toString in class Object