Package mondrian.test
Class UdfTest.BadPlusOneUdf
- java.lang.Object
-
- mondrian.test.UdfTest.PlusOneUdf
-
- mondrian.test.UdfTest.BadPlusOneUdf
-
- All Implemented Interfaces:
UserDefinedFunction
- Enclosing class:
- UdfTest
public static class UdfTest.BadPlusOneUdf extends UdfTest.PlusOneUdf
A simple user-defined function which adds one to its argument.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.spi.UserDefinedFunction
UserDefinedFunction.Argument
-
-
Constructor Summary
Constructors Constructor Description BadPlusOneUdf(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name with which the user-defined function will be used from within MDX expressions.Type
getReturnType(Type[] parameterTypes)
Returns the return-type of this function.-
Methods inherited from class mondrian.test.UdfTest.PlusOneUdf
execute, getDescription, getParameterTypes, getReservedWords, getSyntax
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:UserDefinedFunction
Returns the name with which the user-defined function will be used from within MDX expressions.- Specified by:
getName
in interfaceUserDefinedFunction
- Overrides:
getName
in classUdfTest.PlusOneUdf
-
getReturnType
public Type getReturnType(Type[] parameterTypes)
Description copied from interface:UserDefinedFunction
Returns the return-type of this function.- Specified by:
getReturnType
in interfaceUserDefinedFunction
- Overrides:
getReturnType
in classUdfTest.PlusOneUdf
- Parameters:
parameterTypes
- Parameter types- Returns:
- Return type
-
-