mondrian.olap
Interface FunDef

All Known Implementing Classes:
AbstractAggregateFunDef, AddCalculatedMembersFunDef, AggregateFunDef, AncestorFunDef, AvgFunDef, CacheFunDef, CalculatedChildFunDef, CaseMatchFunDef, CaseTestFunDef, CastFunDef, CoalesceEmptyFunDef, CorrelationFunDef, CountFunDef, CovarianceFunDef, CrossJoinFunDef, DescendantsFunDef, DimensionCurrentMemberFunDef, DistinctFunDef, DrilldownLevelFunDef, DrilldownLevelTopBottomFunDef, DrilldownMemberFunDef, ExceptFunDef, ExistsFunDef, ExtractFunDef, FilterFunDef, FormatFunDef, FunDefBase, GenerateFunDef, HeadTailFunDef, HierarchizeFunDef, HierarchyCurrentMemberFunDef, HierarchyDimensionFunDef, IifFunDef, IntersectFunDef, IsEmptyFunDef, IsFunDef, IsNullFunDef, JavaFunDef, LastPeriodsFunDef, LeadLagFunDef, LevelHierarchyFunDef, LinReg, LinReg.InterceptFunDef, LinReg.PointFunDef, LinReg.R2FunDef, LinReg.SlopeFunDef, LinReg.VarianceFunDef, MedianFunDef, MemberHierarchyFunDef, MemberLevelFunDef, MinMaxFunDef, NonEmptyCrossJoinFunDef, NthQuartileFunDef, OpeningClosingPeriodFunDef, OrderFunDef, ParallelPeriodFunDef, ParameterFunDef, ParenthesesFunDef, PercentileFunDef, PeriodsToDateFunDef, PropertiesFunDef, RangeFunDef, RankFunDef, SetFunDef, SetItemFunDef, SetToStrFunDef, StdevFunDef, StdevPFunDef, StrToSetFunDef, StrToTupleFunDef, SubsetFunDef, SumFunDef, ToggleDrillStateFunDef, TopBottomCountFunDef, TopBottomPercentSumFunDef, TupleFunDef, TupleItemFunDef, TupleToStrFunDef, UnionFunDef, UnorderFunDef, ValidMeasureFunDef, ValueFunDef, VarFunDef, VarPFunDef, VisualTotalsFunDef, XtdFunDef

public interface FunDef

FunDef is the definition of an MDX function. See also FunTable.

 

Method Summary
 Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
          Converts a call to this function into executable objects.
 Exp createCall(Validator validator, Exp[] args)
          Creates an expression which represents a call to this function with a given set of arguments.
 String getDescription()
          Returns the description of this function.
 String getName()
          Returns the name of this function.
 int[] getParameterCategories()
          Returns the types of the arguments of this function.
 int getReturnCategory()
          Returns the Category code of the value returned by this function.
 String getSignature()
          Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".
 Syntax getSyntax()
          Returns the syntactic type of the function.
 void unparse(Exp[] args, PrintWriter pw)
          Converts a function call into MDX source code.
 

Method Detail

getSyntax

Syntax getSyntax()
Returns the syntactic type of the function.


getName

String getName()
Returns the name of this function.


getDescription

String getDescription()
Returns the description of this function.


getReturnCategory

int getReturnCategory()
Returns the Category code of the value returned by this function.


getParameterCategories

int[] getParameterCategories()
Returns the types of the arguments of this function. Values are the same as those returned by Exp.getCategory(). The 0th argument of methods and properties are the object they are applied to. Infix operators have two arguments, and prefix operators have one argument.


createCall

Exp createCall(Validator validator,
               Exp[] args)
Creates an expression which represents a call to this function with a given set of arguments. The result is usually a ResolvedFunCall but not always.


getSignature

String getSignature()
Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".


unparse

void unparse(Exp[] args,
             PrintWriter pw)
Converts a function call into MDX source code.


compileCall

Calc compileCall(ResolvedFunCall call,
                 ExpCompiler compiler)
Converts a call to this function into executable objects.

The 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.


SourceForge.net_Logo