Package mondrian.udf
Class InUdf
java.lang.Object
mondrian.udf.InUdf
- All Implemented Interfaces:
UserDefinedFunction
User-defined function
IN
.- Author:
- schoi
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.spi.UserDefinedFunction
UserDefinedFunction.Argument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(Evaluator evaluator, UserDefinedFunction.Argument[] arguments) Applies this function to a set of arguments, and returns a result.Returns a description of the user-defined function.getName()
Returns the name with which the user-defined function will be used from within MDX expressions.Type[]
Returns an array of the types of the parameters of this function.String[]
Returns a list of reserved words used by this function.getReturnType
(Type[] parameterTypes) Returns the return-type of this function.Returns the syntactic type of the user-defined function.
-
Constructor Details
-
InUdf
public InUdf()
-
-
Method Details
-
execute
Description copied from interface:UserDefinedFunction
Applies this function to a set of arguments, and returns a result.- Specified by:
execute
in interfaceUserDefinedFunction
- Parameters:
evaluator
- Evaluator containts the runtime context, in particular the current member of each dimension.arguments
- Expressions which yield the arguments of this function. Most user-defined functions will evaluate all arguments before using them. Functions such asIIf
do not evaluate all arguments; this technique is called lazy evaluation.- Returns:
- The result value.
-
getDescription
Description copied from interface:UserDefinedFunction
Returns a description of the user-defined function.- Specified by:
getDescription
in interfaceUserDefinedFunction
-
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
-
getParameterTypes
Description copied from interface:UserDefinedFunction
Returns an array of the types of the parameters of this function.- Specified by:
getParameterTypes
in interfaceUserDefinedFunction
-
getReservedWords
Description copied from interface:UserDefinedFunction
Returns a list of reserved words used by this function. May return an empty array or null if this function does not require any reserved words.- Specified by:
getReservedWords
in interfaceUserDefinedFunction
-
getReturnType
Description copied from interface:UserDefinedFunction
Returns the return-type of this function.- Specified by:
getReturnType
in interfaceUserDefinedFunction
- Parameters:
parameterTypes
- Parameter types- Returns:
- Return type
-
getSyntax
Description copied from interface:UserDefinedFunction
Returns the syntactic type of the user-defined function. UsuallySyntax.Function
.- Specified by:
getSyntax
in interfaceUserDefinedFunction
-