|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.util.ReflectiveSqlOperatorTable
public abstract class ReflectiveSqlOperatorTable
ReflectiveSqlOperatorTable implements the SqlOperatorTable
interface
by reflecting the public fields of a subclass.
Field Summary | |
---|---|
private Map<String,SqlOperator> |
mapNameToOp
|
private MultiMap<String,SqlOperator> |
operators
|
Constructor Summary | |
---|---|
protected |
ReflectiveSqlOperatorTable()
|
Method Summary | |
---|---|
List<SqlOperator> |
getOperatorList()
Retrieves a list of all functions and operators in this table. |
void |
init()
Performs post-constructor initialization of an operator table. |
List<SqlOperator> |
lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax)
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final MultiMap<String,SqlOperator> operators
private final Map<String,SqlOperator> mapNameToOp
Constructor Detail |
---|
protected ReflectiveSqlOperatorTable()
Method Detail |
---|
public final void init()
public List<SqlOperator> lookupOperatorOverloads(SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax)
SqlOperatorTable
lookupOperatorOverloads
in interface SqlOperatorTable
opName
- name of operatorcategory
- function category to look up, or null for any matching
operatorsyntax
- syntax type of operator
public void register(SqlOperator op)
public void register(SqlFunction function)
function
- Function to registerpublic List<SqlOperator> getOperatorList()
SqlOperatorTable
getOperatorList
in interface SqlOperatorTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |