|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql2rel.ReflectiveConvertletTable
public class ReflectiveConvertletTable
Implementation of SqlRexConvertletTable which uses reflection to call
any method of the form public RexNode convertXxx(ConvertletContext,
SqlNode) or public RexNode convertXxx(ConvertletContext,
SqlOperator, SqlCall).
| Field Summary | |
|---|---|
private Map<Object,Object> |
map
|
| Constructor Summary | |
|---|---|
ReflectiveConvertletTable()
|
|
| Method Summary | |
|---|---|
protected void |
addAlias(SqlOperator alias,
SqlOperator target)
Registers that one operator is an alias for another. |
SqlRexConvertlet |
get(SqlCall call)
Returns the convertlet applicable to a given expression. |
private void |
registerNodeTypeMethod(Method method)
Registers method if it: a. |
protected void |
registerOp(SqlOperator op,
SqlRexConvertlet convertlet)
Registers a convertlet for a given operator instance |
private void |
registerOpTypeMethod(Method method)
Registers method if it: a. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Map<Object,Object> map
| Constructor Detail |
|---|
public ReflectiveConvertletTable()
| Method Detail |
|---|
private void registerNodeTypeMethod(Method method)
private void registerOpTypeMethod(Method method)
public SqlRexConvertlet get(SqlCall call)
SqlRexConvertletTable
get in interface SqlRexConvertletTable
protected void registerOp(SqlOperator op,
SqlRexConvertlet convertlet)
op - Operator instance, say SqlStdOperatorTable.minusOperatorconvertlet - Convertlet
protected void addAlias(SqlOperator alias,
SqlOperator target)
alias - Operator which is aliastarget - Operator to translate calls to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||