public static class Convention.Impl extends Object implements Convention
Convention.ImplNONE| Constructor and Description |
|---|
Convention.Impl(String name,
Class<? extends RelNode> relClass) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getInterface() |
String |
getName() |
RelTraitDef |
getTraitDef()
Returns the RelTraitDef that defines this RelTrait.
|
void |
register(RelOptPlanner planner)
Registers a trait instance with the planner.
|
boolean |
satisfies(RelTrait trait)
Returns whether this trait satisfies a given trait.
|
String |
toString()
Returns a succinct name for this trait.
|
public String toString()
RelTraitpublic void register(RelOptPlanner planner)
RelTraitThis is an opportunity to add rules that relate to that trait. However, typical implementations will do nothing.
public boolean satisfies(RelTrait trait)
RelTraitA trait satisfies another if it is the same or stricter. For example,
ORDER BY x, y satisfies ORDER BY x.
A trait's satisfies relation must be a partial order (reflexive,
anti-symmetric, transitive). Many traits cannot be "loosened"; their
satisfies is an equivalence relation, where only X satisfies X.
If a trait has multiple values
(see RelCompositeTrait)
a collection (T0, T1, ...) satisfies T if any Ti satisfies T.
public Class getInterface()
getInterface in interface Conventionpublic String getName()
getName in interface Conventionpublic RelTraitDef getTraitDef()
RelTraitgetTraitDef in interface RelTraitCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.