|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelTrait
RelTrait represents the manifestation of a relational expression trait within
a trait definition. For example, a CallingConvention.JAVA
is a trait
of the CallingConventionTraitDef
trait definition.
Note about equals() and hashCode()
If all instances of RelTrait for a paritcular RelTraitDef are defined in an
enumeration class and no new RelTraits can be introduced at runtime, you need
not override hashCode()
and equals(Object)
. If, however,
new RelTrait instances are generated at runtime (e.g. based on state external
to the planner), you must implement hashCode()
and equals(Object)
for proper canonization
of your
RelTrait objects.
Method Summary | |
---|---|
boolean |
equals(Object o)
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. |
Method Detail |
---|
RelTraitDef getTraitDef()
int hashCode()
hashCode
in class Object
boolean equals(Object o)
equals
in class Object
String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |