Package mondrian.rolap
Class RolapNativeSql.InfixOpSqlCompiler
- java.lang.Object
-
- mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
-
- mondrian.rolap.RolapNativeSql.InfixOpSqlCompiler
-
- All Implemented Interfaces:
RolapNativeSql.SqlCompiler
- Enclosing class:
- RolapNativeSql
class RolapNativeSql.InfixOpSqlCompiler extends RolapNativeSql.FunCallSqlCompilerBase
Compiles an infix operator like addition into SQL like(a + b)
.
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
argCount, category, mdx
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InfixOpSqlCompiler(int category, java.lang.String mdx, java.lang.String sql, RolapNativeSql.SqlCompiler argumentCompiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
compile(Exp exp)
Returns SQL.java.lang.String
toString()
-
Methods inherited from class mondrian.rolap.RolapNativeSql.FunCallSqlCompilerBase
compileArgs, match
-
-
-
-
Constructor Detail
-
InfixOpSqlCompiler
protected InfixOpSqlCompiler(int category, java.lang.String mdx, java.lang.String sql, RolapNativeSql.SqlCompiler argumentCompiler)
-
-
Method Detail
-
compile
public java.lang.String compile(Exp exp)
Description copied from interface:RolapNativeSql.SqlCompiler
Returns SQL. Ifexp
can not be compiled into SQL, returns null.- Parameters:
exp
- Expression- Returns:
- SQL, or null if cannot be converted into SQL
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-