|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.oj.rex.OJRexImplementorTableImpl
public class OJRexImplementorTableImpl
OJRexImplementorTableImpl is a default implementation of OJRexImplementorTable
, containing implementors for standard operators,
functions, and aggregates. Say that three times fast.
Nested Class Summary | |
---|---|
static class |
OJRexImplementorTableImpl.OJBasicAggImplementor
|
static class |
OJRexImplementorTableImpl.OJCountAggImplementor
|
static class |
OJRexImplementorTableImpl.OJMinMaxAggImplementor
|
static class |
OJRexImplementorTableImpl.OJSumAggImplementor
Sum is an aggregator which returns the sum of the values
which go into it. |
Field Summary | |
---|---|
private Map<SqlAggFunction,OJRexImplementorTableImpl.OJSumAggImplementor> |
aggImplementorMap
|
private static String |
holderClassName
|
private Map<SqlOperator,OJRexImplementor> |
implementorMap
|
private static OJRexImplementorTableImpl |
instance
|
Constructor Summary | |
---|---|
protected |
OJRexImplementorTableImpl()
Creates an empty table. |
Method Summary | |
---|---|
OJAggImplementor |
get(Aggregation agg)
Retrieves the implementor of an aggregate, or null if there is no implementor registered. |
OJRexImplementor |
get(SqlOperator op)
Retrieves the implementor of an operator, or null if there is no implementor registered. |
protected void |
initStandard(SqlStdOperatorTable opTab)
Registers implementations for the standard set of functions and operators. |
static OJRexImplementorTable |
instance()
Creates a table and initializes it with implementations of all of the standard SQL functions and operators. |
protected void |
registerBinaryOperator(SqlBinaryOperator op,
int ojBinaryExpressionOrdinal)
|
void |
registerOperator(SqlOperator op,
OJRexImplementor implementor)
|
protected void |
registerUnaryOperator(SqlPrefixOperator op,
int ojUnaryExpressionOrdinal)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static OJRexImplementorTableImpl instance
private static final String holderClassName
private final Map<SqlOperator,OJRexImplementor> implementorMap
private final Map<SqlAggFunction,OJRexImplementorTableImpl.OJSumAggImplementor> aggImplementorMap
Constructor Detail |
---|
protected OJRexImplementorTableImpl()
You probably want to call the public method instance
instead.
Method Detail |
---|
public static OJRexImplementorTable instance()
public OJRexImplementor get(SqlOperator op)
OJRexImplementorTable
get
in interface OJRexImplementorTable
public OJAggImplementor get(Aggregation agg)
OJRexImplementorTable
get
in interface OJRexImplementorTable
protected void initStandard(SqlStdOperatorTable opTab)
public void registerOperator(SqlOperator op, OJRexImplementor implementor)
protected void registerBinaryOperator(SqlBinaryOperator op, int ojBinaryExpressionOrdinal)
protected void registerUnaryOperator(SqlPrefixOperator op, int ojUnaryExpressionOrdinal)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |