|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.XMLUtil
org.eigenbase.xom.XOMUtil
mondrian.olap.Util
mondrian.olap.fun.FunUtil
mondrian.olap.fun.FunDefBase
mondrian.olap.fun.JavaFunDef
public class JavaFunDef
MDX function which is implemented by a Java method. When the function is executed, the method is invoked via reflection.
| Nested Class Summary | |
|---|---|
static interface |
JavaFunDef.Description
Annotation which allows you to tag a Java method with the description of the MDX function it implements. |
static interface |
JavaFunDef.FunctionName
Annotation which allows you to tag a Java method with the name of the MDX function it implements. |
static interface |
JavaFunDef.Signature
Annotation which allows you to tag a Java method with the signature of the MDX function it implements. |
static interface |
JavaFunDef.SyntaxDef
Annotation which allows you to tag a Java method with the syntax of the MDX function it implements. |
| Nested classes/interfaces inherited from class mondrian.olap.fun.FunUtil |
|---|
FunUtil.DescendingValueComparator, FunUtil.Flag, FunUtil.ObjIntPair<T>, FunUtil.OrderKey, FunUtil.Quicksorter<T>, FunUtil.SetWrapper, FunUtil.SortKeySpec, FunUtil.TupleExpMemoComparator |
| Nested classes/interfaces inherited from class mondrian.olap.Util |
|---|
Util.AbstractFlatList<T>, Util.ErrorCellValue, Util.Flat2List<T>, Util.Flat3List<T>, Util.Functor1<RT,PT>, Util.GcIterator<T>, Util.MemoryInfo, Util.PropertyList, Util.SqlNullSafeComparator |
| Field Summary |
|---|
| Fields inherited from class mondrian.olap.fun.FunDefBase |
|---|
flags, parameterCategories, returnCategory, signature |
| Fields inherited from class mondrian.olap.fun.FunUtil |
|---|
BooleanNull, DoubleEmpty, DoubleNull, emptyStringArray, IntegerNull, NullMember |
| Fields inherited from class mondrian.olap.Util |
|---|
DEBUG, EmptyValue, IBM_JVM, JdbcVersion, nl, nullValue, PreJdk15, PreJdk16, Retrowoven |
| Constructor Summary | |
|---|---|
JavaFunDef(String name,
String desc,
Syntax syntax,
int returnCategory,
int[] paramCategories,
Method method)
Creates a JavaFunDef. |
|
| Method Summary | |
|---|---|
Calc |
compileCall(ResolvedFunCall call,
ExpCompiler compiler)
Converts a call to this function into executable objects. |
static List<FunDef> |
scan(Class clazz)
Scans a java class and returns a list of function definitions, one for each static method which is suitable to become an MDX function. |
| Methods inherited from class mondrian.olap.fun.FunDefBase |
|---|
castType, createCall, getDescription, getName, getParameterCategories, getResultType, getReturnCategory, getSignature, getSyntax, unparse, validateArg |
| Methods inherited from class org.eigenbase.xom.XOMUtil |
|---|
addChild, addChild, addChildren, addElement, concatenate, createDefaultParser, discard, discard, discard, discard, discard, discard, discard, discard, discard, getFirstInstance, wrapperToXml |
| Methods inherited from class org.eigenbase.xom.XMLUtil |
|---|
getFirstTagName, printAtt, printAtt, printAtt, printAtt, printPCDATA, printPCDATA, printPCDATA, quoteAtt, quoteAtt, quoteAtt, quoteAtt, quotePCDATA, stringEncodeXML, stringHasXMLSpecials |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaFunDef(String name,
String desc,
Syntax syntax,
int returnCategory,
int[] paramCategories,
Method method)
name - Namedesc - Descriptionsyntax - SyntaxreturnCategory - Return typeparamCategories - Parameter typesmethod - Java method which implements this function| Method Detail |
|---|
public Calc compileCall(ResolvedFunCall call,
ExpCompiler compiler)
FunDefThe result must implement the appropriate interface for the result
type. For example, a function which returns an integer must return
an object which implements IntegerCalc.
compileCall in interface FunDefcompileCall in class FunDefBasepublic static List<FunDef> scan(Class clazz)
clazz - Class
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||