Uses of Interface
mondrian.calc.Calc
Packages that use Calc
Package
Description
Provides compiled expressions.
Provides implementation classes for compiled expressions.
Defines a parse tree for MDX expressions.
Mondrian's core package, this defines connections and the catalog metamodel,
and allows you to execute queries.
Defines the set of MDX built-in functions.
Defines MDX extension functions.
Implements the data access layer for the olap package.
-
Uses of Calc in mondrian.calc
Subinterfaces of Calc in mondrian.calcModifier and TypeInterfaceDescriptioninterfaceCompiled expression whose result is aboolean.interfaceCompiled expression whose result is aDate, representing an MDX DateTime value.interfaceExpression which yields aDimension.interfaceCompiled expression whose result is adouble.interfaceExpression which yields aHierarchy.interfaceCompiled expression whose result is anint.interfaceExpression that evaluates a set of tuples to aTupleIterable.interfaceExpression which yields aLevel.interfaceExpression which evaluates a set of members or tuples to a list.interfaceExpression which yields aMember.interfaceCompiled expression whose result is aString.interfaceExpression which yields a tuple.interfaceExpression which has a void result.Methods in mondrian.calc that return CalcModifier and TypeMethodDescriptionDummyExp.accept(ExpCompiler compiler) Compiles an expression.ParameterCompilable.compile(ExpCompiler compiler) ExpCompiler.compileAs(Exp exp, Type resultType, List<ResultStyle> preferredResultStyles) Compiles an expression to a given result type.ExpCompiler.compileScalar(Exp exp, boolean specific) Compiles an expression to yield a scalar result.ParameterSlot.getDefaultValueCalc()Returns a compiled expression to compute the default value of the parameter.Methods in mondrian.calc with parameters of type Calc -
Uses of Calc in mondrian.calc.impl
Classes in mondrian.calc.impl that implement CalcModifier and TypeClassDescriptionclassAbstract implementation of theBooleanCalcinterface.classAbstract implementation of theCalcinterface.classAbstract implementation of theDateTimeCalcinterface.classAbstract implementation of theDimensionCalcinterface.classAbstract implementation of theDoubleCalcinterface.classAbstract implementation of theHierarchyCalcinterface.classAbstract implementation of theIntegerCalcinterface.classAbstract implementation of theIterCalcinterface.classAbstract implementation of theLevelCalcinterface.classAbstract implementation of theListCalcinterface.classAbstract implementation of theMemberCalcinterface.classAbstract implementation of theStringCalcinterface.classAbstract implementation of theTupleCalcinterface.classAbstract implementation of theVoidCalcinterface.classCalculation which retrieves the value of an underlying calculation from cache.classCalculator which always returns the same value.classAdapter which computes a scalar or tuple expression and converts it to any required type.classAdapter which computes a set expression and converts it to any list or iterable type.classclassExpression which evaluates a few member expressions, sets the dimensional context to the result of those expressions, then yields the value of the current measure in the current dimensional context.classExpression which evaluates a few member expressions, sets the dimensional context to the result of those expressions, then yields the value of the current measure in the current dimensional context.classExpression which evaluates a tuple expression, sets the dimensional context to the result of that expression, then yields the value of the current measure in the current dimensional context.classExpression which yields the value of the current member in the current dimensional context.Methods in mondrian.calc.impl that return CalcModifier and TypeMethodDescriptionprotected CalcDelegatingExpCompiler.afterCompile(Exp exp, Calc calc, boolean mutable) Hook for post-processing.Compiles an expression.AbstractExpCompiler.compileAs(Exp exp, Type resultType, List<ResultStyle> preferredResultTypes) Compiles an expression to a given result type.DelegatingExpCompiler.compileAs(Exp exp, Type resultType, List<ResultStyle> preferredResultTypes) AbstractExpCompiler.compileScalar(Exp exp, boolean specific) DelegatingExpCompiler.compileScalar(Exp exp, boolean scalar) static CalcConstantCalc.constantDimension(Dimension dimension) Creates an expression which evaluates to a given dimension.static CalcConstantCalc.constantHierarchy(Hierarchy hierarchy) Creates an expression which evaluates to a given hierarchy.static CalcConstantCalc.constantLevel(Level level) Creates an expression which evaluates to a given level.static CalcConstantCalc.constantMember(Member member) Creates an expression which evaluates to a given member.Calc[]AbstractCalc.getCalcs()Returns this expression's child expressions.Calc[]AbstractVoidCalc.getCalcs()Calc[]CacheCalc.getCalcs()Calc[]ConstantCalc.getCalcs()Calc[]MemberArrayValueCalc.getCalcs()Calc[]MemberValueCalc.getCalcs()Calc[]TupleValueCalc.getCalcs()TupleValueCalc.optimize()Optimizes the scalar evaluation of a tuple.Methods in mondrian.calc.impl with parameters of type CalcModifier and TypeMethodDescriptionprotected CalcDelegatingExpCompiler.afterCompile(Exp exp, Calc calc, boolean mutable) Hook for post-processing.static booleanAbstractCalc.anyDepends(Calc[] calcs, Hierarchy hierarchy) Returns true if one of the calcs depends on the given dimension.static booleanAbstractCalc.anyDependsButFirst(Calc[] calcs, Hierarchy hierarchy) Returns true if calc[0] depends on dimension, else false if calc[0] returns dimension, else true if any of the other calcs depend on dimension.static booleanAbstractCalc.butDepends(Calc[] calcs, Hierarchy hierarchy) Returns true if any of the calcs depend on dimension, else false if any of the calcs return dimension, else true.static EvaluatorAbstractCalc.simplifyEvaluator(Calc calc, Evaluator evaluator) Returns a simplified evalator whose context is the same for every dimension which an expression depends on, and the default member for every dimension which it does not depend on.Constructors in mondrian.calc.impl with parameters of type CalcModifierConstructorDescriptionAbstractBooleanCalc(Exp exp, Calc[] calcs) Creates an AbstractBooleanCalc.protectedAbstractCalc(Exp exp, Calc[] calcs) Creates an AbstractCalc.protectedAbstractDateTimeCalc(Exp exp, Calc[] calcs) Creates an AbstractDateTimeCalc.protectedAbstractDimensionCalc(Exp exp, Calc[] calcs) Creates an AbstractDimensionCalc.protectedAbstractDoubleCalc(Exp exp, Calc[] calcs) Creates an AbstractDoubleCalc.protectedAbstractHierarchyCalc(Exp exp, Calc[] calcs) Creates an AbstractHierarchyCalc.protectedAbstractIntegerCalc(Exp exp, Calc[] calcs) Creates an AbstractIntegerCalc.protectedAbstractIterCalc(Exp exp, Calc[] calcs) Creates an abstract implementation of a compiled expression which returns aTupleIterable.protectedAbstractLevelCalc(Exp exp, Calc[] calcs) Creates an AbstractLevelCalc.protectedAbstractListCalc(Exp exp, Calc[] calcs) Creates an abstract implementation of a compiled expression which returns a mutable list of tuples.protectedAbstractListCalc(Exp exp, Calc[] calcs, boolean mutable) Creates an abstract implementation of a compiled expression which returns a list.protectedAbstractMemberCalc(Exp exp, Calc[] calcs) Creates an AbstractMemberCalc.protectedAbstractStringCalc(Exp exp, Calc[] calcs) Creates an AbstractStringCalc.protectedAbstractTupleCalc(Exp exp, Calc[] calcs) Creates an AbstractTupleCalc.protectedAbstractVoidCalc(Exp exp, Calc[] calcs) protectedGenericCalc(Exp exp, Calc[] calcs) Creates an GenericCalc.protectedGenericIterCalc(Exp exp, Calc[] calcs) Creates an GenericIterCalc. -
Uses of Calc in mondrian.mdx
Methods in mondrian.mdx that return CalcModifier and TypeMethodDescriptionDimensionExpr.accept(ExpCompiler compiler) HierarchyExpr.accept(ExpCompiler compiler) LevelExpr.accept(ExpCompiler compiler) MemberExpr.accept(ExpCompiler compiler) NamedSetExpr.accept(ExpCompiler compiler) ParameterExpr.accept(ExpCompiler compiler) ResolvedFunCall.accept(ExpCompiler compiler) UnresolvedFunCall.accept(ExpCompiler compiler) -
Uses of Calc in mondrian.olap
Fields in mondrian.olap declared as CalcMethods in mondrian.olap that return CalcModifier and TypeMethodDescriptionExp.accept(ExpCompiler compiler) Converts this expression into an a tree of expressions which can be efficiently evaluated.ExpBase.accept(ExpCompiler compiler) Literal.accept(ExpCompiler compiler) ParameterImpl.compile(ExpCompiler compiler) QueryAxis.compile(ExpCompiler compiler, ResultStyle resultStyle) FunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) Converts a call to this function into executable objects.Query.compileExpression(Exp exp, boolean scalar, ResultStyle resultStyle) Compiles an expression, using a cached compiled expression if available.ExpCacheDescriptor.getCalc()Methods in mondrian.olap with parameters of type CalcModifier and TypeMethodDescriptionApplies this aggregator to an expression over a set of members and returns the result.static voidUtil.explain(ProfileHandler handler, String title, Calc calc, QueryTiming timing) Called during major steps of executing a MDX query to provide insight into Calc calls/times and key function calls/times.DelegatingSchemaReader.getNativeSetEvaluator(FunDef fun, Exp[] args, Evaluator evaluator, Calc calc) SchemaReader.getNativeSetEvaluator(FunDef fun, Exp[] args, Evaluator evaluator, Calc calc) Returns an object which can evaluate an expression in native SQL, or null if this is not possible.Constructors in mondrian.olap with parameters of type CalcModifierConstructorDescriptionExpCacheDescriptor(Exp exp, Calc calc, Evaluator evaluator) Creates a descriptor with a given compiled expression. -
Uses of Calc in mondrian.olap.fun
Classes in mondrian.olap.fun that implement CalcModifier and TypeClassDescriptionstatic classstatic classCompiled implementation of the Hierarchy.CurrentMember function that evaluates the hierarchy expression first.static classCompiled implementation of the Hierarchy.CurrentMember function that uses a fixed hierarchy.static classstatic classstatic classstatic classstatic classstatic classstatic classCompiled expression that evaluates one or more expressions, each of which yields a tuple or a set of tuples, and returns the result as a tuple iterator.static classCompiled expression to implement the MDX set function,{ ...static classMethods in mondrian.olap.fun that return CalcModifier and TypeMethodDescriptionAggregateFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) CacheFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) CastFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) CoalesceEmptyFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) CrossJoinFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) ExistingFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) FunDefBase.compileCall(ResolvedFunCall call, ExpCompiler compiler) HierarchyCurrentMemberFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) HierarchyDimensionFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) IifFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) JavaFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) LevelHierarchyFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) LevelMembersFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) LinReg.compileCall(ResolvedFunCall call, ExpCompiler compiler) LinReg.PointFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) MemberHierarchyFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) MemberLevelFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) MemberOrderKeyFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) NamedSetCurrentFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) NamedSetCurrentOrdinalFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) NativizeSetFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) NonEmptyCrossJoinFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) ParenthesesFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) RankFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) SetFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) TupleFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) ValidMeasureFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) VisualTotalsFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) RankFunDef.compileCall2(ResolvedFunCall call, ExpCompiler compiler) RankFunDef.compileCall3(ResolvedFunCall call, ExpCompiler compiler) Calc[]SetFunDef.SetListCalc.getCalcs()Methods in mondrian.olap.fun with parameters of type CalcModifier and TypeMethodDescriptionstatic ObjectComputes an expression for each element of a list, and aggregates the result according to the evaluation context's current aggregation strategy.static Objectstatic voidFunUtil.checkIterListResultStyles(Calc calc) static voidFunUtil.checkListResultStyles(Calc calc) static Objectstatic Objectprotected static doubleReturns the member which lies upon a particular quartile according to a given expression.static Objectstatic doubleFunUtil.sumDouble(Evaluator evaluator, TupleIterable iterable, Calc exp) static doubleConstructors in mondrian.olap.fun with parameters of type CalcModifierConstructorDescriptionAggregateCalc(Exp exp, ListCalc listCalc, Calc calc) AggregateCalc(Exp exp, ListCalc listCalc, Calc calc, Member member) protectedNativeListCalc(ResolvedFunCall call, Calc[] calcs, ExpCompiler compiler, mondrian.olap.fun.NativizeSetFunDef.SubstitutionMap substitutionMap, Exp originalExp) -
Uses of Calc in mondrian.olap.fun.extra
Methods in mondrian.olap.fun.extra that return CalcModifier and TypeMethodDescriptionCachedExistsFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) CalculatedChildFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) NthQuartileFunDef.compileCall(ResolvedFunCall call, ExpCompiler compiler) -
Uses of Calc in mondrian.olap.fun.sort
Methods in mondrian.olap.fun.sort that return CalcMethods in mondrian.olap.fun.sort with parameters of type CalcModifier and TypeMethodDescriptionSorter.evaluateTuples(Evaluator evaluator, Calc exp, TupleList tuples) For each tuple in a list, evaluates an expression and creates a map from tuples to values.Sorter.partiallySortMembers(Evaluator evaluator, List<Member> list, Calc exp, int limit, boolean desc) Partially sorts a list of Members by the value of an applied expression.Sorter.partiallySortTuples(Evaluator evaluator, TupleList list, Calc exp, int limit, boolean desc) Partially sorts a list of Tuples by the value of an applied expression.Sorter.sortMembers(Evaluator evaluator, Iterable<Member> memberIter, List<Member> memberList, Calc exp, boolean desc, boolean brk) Helper function to sort a list of members according to an expression.static TupleListSorter.sortTuples(Evaluator evaluator, TupleIterable tupleIterable, TupleList tupleList, Calc exp, boolean desc, boolean brk, int arity) Sorts a list of Tuples by the value of an applied expression.Constructors in mondrian.olap.fun.sort with parameters of type Calc -
Uses of Calc in mondrian.rolap
Methods in mondrian.rolap that return CalcModifier and TypeMethodDescriptionRolapSchemaParameter.compile(ExpCompiler compiler) RolapMemberBase.getCompiledExpression(mondrian.rolap.RolapEvaluatorRoot root) RolapResult.CompoundSlicerRolapMember.getCompiledExpression(mondrian.rolap.RolapEvaluatorRoot root) Methods in mondrian.rolap with parameters of type CalcModifier and TypeMethodDescriptionRolapDependencyTestingEvaluator.evaluate(Calc calc, Hierarchy[] independentHierarchies, String mdxString) RolapSchemaReader.getNativeSetEvaluator(FunDef fun, Exp[] args, Evaluator evaluator, Calc calc) protected voidRolapResult.loadMembers(List<List<Member>> nonAllMembers, RolapEvaluator evaluator, QueryAxis axis, Calc calc, mondrian.rolap.RolapResult.AxisMemberList axisMembers) Constructors in mondrian.rolap with parameters of type CalcModifierConstructorDescriptionCompoundSlicerRolapMember(RolapMember placeholderMember, Calc calc, mondrian.rolap.RolapResult.ValueFormatter formatter, TupleList tupleList)