public abstract class ReflectiveSqlOperatorTable extends Object implements SqlOperatorTable
SqlOperatorTable interface
by reflecting the public fields of a subclass.| Modifier and Type | Class and Description |
|---|---|
private static class |
ReflectiveSqlOperatorTable.Key
Key for looking up operators.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
IS_NAME |
private com.google.common.collect.Multimap<ReflectiveSqlOperatorTable.Key,SqlOperator> |
operators |
| 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(SqlOperator op)
Registers a function or operator in the table.
|
public static final String IS_NAME
private final com.google.common.collect.Multimap<ReflectiveSqlOperatorTable.Key,SqlOperator> operators
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 List<SqlOperator> getOperatorList()
SqlOperatorTablegetOperatorList in interface SqlOperatorTableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.