public abstract class ReflectiveSqlOperatorTable extends Object implements SqlOperatorTable
SqlOperatorTable interface
by reflecting the public fields of a subclass.| Modifier | Constructor and Description |
|---|---|
protected |
ReflectiveSqlOperatorTable() |
| Modifier and Type | Method and Description |
|---|---|
List<SqlOperator> |
getOperatorList()
Retrieves a list of all functions and operators in this table.
|
void |
init()
Performs post-constructor initialization of an operator table.
|
void |
lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList)
Retrieves a list of operators with a given name and syntax.
|
void |
register(SqlFunction function)
Registers a function in the table.
|
void |
register(SqlOperator op) |
public static final String IS_NAME
public final void init()
public void lookupOperatorOverloads(SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax, List<SqlOperator> operatorList)
SqlOperatorTablelookupOperatorOverloads in interface SqlOperatorTableopName - name of operatorcategory - function category to look up, or null for any matching
operatorsyntax - syntax type of operatoroperatorList - mutable list to which to append matchespublic void register(SqlOperator op)
public void register(SqlFunction function)
function - Function to registerpublic List<SqlOperator> getOperatorList()
SqlOperatorTablegetOperatorList in interface SqlOperatorTableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.