|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.test.UdfTest.MemberNameFunction
public static class UdfTest.MemberNameFunction
Function that takes a member and returns a name.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface mondrian.spi.UserDefinedFunction |
---|
UserDefinedFunction.Argument |
Constructor Summary | |
---|---|
UdfTest.MemberNameFunction()
|
Method Summary | |
---|---|
Object |
execute(Evaluator eval,
UserDefinedFunction.Argument[] args)
Applies this function to a set of arguments, and returns a result. |
String |
getDescription()
Returns a description of the user-defined function. |
String |
getName()
Returns the name with which the user-defined function will be used from within MDX expressions. |
Type[] |
getParameterTypes()
Returns an array of the types of the parameters of this function. |
String[] |
getReservedWords()
Returns a list of reserved words used by this function. |
Type |
getReturnType(Type[] arg0)
Returns the return-type of this function. |
Syntax |
getSyntax()
Returns the syntactic type of the user-defined function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UdfTest.MemberNameFunction()
Method Detail |
---|
public Object execute(Evaluator eval, UserDefinedFunction.Argument[] args)
UserDefinedFunction
execute
in interface UserDefinedFunction
eval
- Evaluator containts the runtime context, in particular
the current member of each dimension.args
- Expressions which yield the arguments of this function.
Most user-defined functions will evaluate all arguments before using
them. Functions such as IIf
do not evaluate all
arguments; this technique is called lazy evaluation.
public String getDescription()
UserDefinedFunction
getDescription
in interface UserDefinedFunction
public String getName()
UserDefinedFunction
getName
in interface UserDefinedFunction
public Type[] getParameterTypes()
UserDefinedFunction
getParameterTypes
in interface UserDefinedFunction
public String[] getReservedWords()
UserDefinedFunction
getReservedWords
in interface UserDefinedFunction
public Type getReturnType(Type[] arg0)
UserDefinedFunction
getReturnType
in interface UserDefinedFunction
arg0
- Parameter types
public Syntax getSyntax()
UserDefinedFunction
Syntax.Function
.
getSyntax
in interface UserDefinedFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |