public class ReflectiveConvertletTable extends Object implements SqlRexConvertletTable
SqlRexConvertletTable which uses reflection to call
any method of the form public RexNode convertXxx(ConvertletContext,
SqlNode) or public RexNode convertXxx(ConvertletContext,
SqlOperator, SqlCall).| Constructor and Description |
|---|
ReflectiveConvertletTable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
registerOp(SqlOperator op,
SqlRexConvertlet convertlet)
Registers a convertlet for a given operator instance
|
public SqlRexConvertlet get(SqlCall call)
SqlRexConvertletTableget in interface SqlRexConvertletTableprotected void registerOp(SqlOperator op, SqlRexConvertlet convertlet)
op - Operator instance, say
SqlStdOperatorTable.MINUSconvertlet - Convertletprotected void addAlias(SqlOperator alias, SqlOperator target)
alias - Operator which is aliastarget - Operator to translate calls toCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.