Uses of Interface
mondrian.olap.Exp
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.
Implements the data access layer for the olap package.
Database-independent library for generating SQL.
-
Uses of Exp in mondrian.calc
Modifier and TypeMethodDescriptionCompiles an expression.ExpCompiler.compileAs
(Exp exp, Type resultType, List<ResultStyle> preferredResultStyles) Compiles an expression to a given result type.ExpCompiler.compileBoolean
(Exp exp) Compiles an expression which yields aboolean
result.ExpCompiler.compileDateTime
(Exp exp) Compiles an expression which yields aDate
result.ExpCompiler.compileDimension
(Exp exp) Compiles an expression which yields aDimension
result.ExpCompiler.compileDouble
(Exp exp) Compiles an expression which yields adouble
result.ExpCompiler.compileHierarchy
(Exp exp) Compiles an expression which yields aHierarchy
result.ExpCompiler.compileInteger
(Exp exp) Compiles an expression which yields anint
result.ExpCompiler.compileIter
(Exp exp) Compiles an expression which yields an immutableIterable
result.ExpCompiler.compileLevel
(Exp exp) Compiles an expression which yields aLevel
result.ExpCompiler.compileList
(Exp exp) Compiles an expression which yields an immutableTupleList
result.ExpCompiler.compileList
(Exp exp, boolean mutable) Compiles an expression which yieldsTupleList
result.ExpCompiler.compileMember
(Exp exp) Compiles an expression which yields aMember
result.ExpCompiler.compileScalar
(Exp exp, boolean specific) Compiles an expression to yield a scalar result.ExpCompiler.compileString
(Exp exp) Compiles an expression which yields aString
result.ExpCompiler.compileTuple
(Exp exp) Compiles an expression which yields a tuple result. -
Uses of Exp in mondrian.calc.impl
Modifier and TypeMethodDescriptionprotected Calc
DelegatingExpCompiler.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.compileBoolean
(Exp exp) DelegatingExpCompiler.compileBoolean
(Exp exp) AbstractExpCompiler.compileDateTime
(Exp exp) DelegatingExpCompiler.compileDateTime
(Exp exp) AbstractExpCompiler.compileDimension
(Exp exp) DelegatingExpCompiler.compileDimension
(Exp exp) AbstractExpCompiler.compileDouble
(Exp exp) DelegatingExpCompiler.compileDouble
(Exp exp) AbstractExpCompiler.compileHierarchy
(Exp exp) DelegatingExpCompiler.compileHierarchy
(Exp exp) AbstractExpCompiler.compileInteger
(Exp exp) DelegatingExpCompiler.compileInteger
(Exp exp) AbstractExpCompiler.compileIter
(Exp exp) DelegatingExpCompiler.compileIter
(Exp exp) AbstractExpCompiler.compileLevel
(Exp exp) DelegatingExpCompiler.compileLevel
(Exp exp) AbstractExpCompiler.compileList
(Exp exp) AbstractExpCompiler.compileList
(Exp exp, boolean mutable) BetterExpCompiler.compileList
(Exp exp, boolean mutable) final ListCalc
DelegatingExpCompiler.compileList
(Exp exp) DelegatingExpCompiler.compileList
(Exp exp, boolean mutable) AbstractExpCompiler.compileMember
(Exp exp) DelegatingExpCompiler.compileMember
(Exp exp) AbstractExpCompiler.compileScalar
(Exp exp, boolean specific) DelegatingExpCompiler.compileScalar
(Exp exp, boolean scalar) AbstractExpCompiler.compileString
(Exp exp) DelegatingExpCompiler.compileString
(Exp exp) AbstractExpCompiler.compileTuple
(Exp exp) BetterExpCompiler.compileTuple
(Exp exp) DelegatingExpCompiler.compileTuple
(Exp exp) static GenericCalc
MemberValueCalc.create
(Exp exp, MemberCalc[] memberCalcs, boolean nullCheck) ModifierConstructorDescriptionAbstractBooleanCalc
(Exp exp, Calc[] calcs) Creates an AbstractBooleanCalc.protected
AbstractCalc
(Exp exp, Calc[] calcs) Creates an AbstractCalc.protected
AbstractDateTimeCalc
(Exp exp, Calc[] calcs) Creates an AbstractDateTimeCalc.protected
AbstractDimensionCalc
(Exp exp, Calc[] calcs) Creates an AbstractDimensionCalc.protected
AbstractDoubleCalc
(Exp exp, Calc[] calcs) Creates an AbstractDoubleCalc.protected
AbstractHierarchyCalc
(Exp exp, Calc[] calcs) Creates an AbstractHierarchyCalc.protected
AbstractIntegerCalc
(Exp exp, Calc[] calcs) Creates an AbstractIntegerCalc.protected
AbstractIterCalc
(Exp exp, Calc[] calcs) Creates an abstract implementation of a compiled expression which returns aTupleIterable
.protected
AbstractLevelCalc
(Exp exp, Calc[] calcs) Creates an AbstractLevelCalc.protected
AbstractListCalc
(Exp exp, Calc[] calcs) Creates an abstract implementation of a compiled expression which returns a mutable list of tuples.protected
AbstractListCalc
(Exp exp, Calc[] calcs, boolean mutable) Creates an abstract implementation of a compiled expression which returns a list.protected
AbstractMemberCalc
(Exp exp, Calc[] calcs) Creates an AbstractMemberCalc.protected
AbstractStringCalc
(Exp exp, Calc[] calcs) Creates an AbstractStringCalc.protected
AbstractTupleCalc
(Exp exp, Calc[] calcs) Creates an AbstractTupleCalc.protected
AbstractVoidCalc
(Exp exp, Calc[] calcs) CacheCalc
(Exp exp, ExpCacheDescriptor key) protected
GenericCalc
(Exp exp) Creates a GenericCalc without specifying child calculated expressions.protected
GenericCalc
(Exp exp, Calc[] calcs) Creates an GenericCalc.protected
GenericIterCalc
(Exp exp) Creates a GenericIterCalc without specifying child calculated expressions.protected
GenericIterCalc
(Exp exp, Calc[] calcs) Creates an GenericIterCalc.MemberValueCalc
(Exp exp, MemberCalc memberCalc, boolean nullCheck) Creates a MemberArrayValueCalc.TupleValueCalc
(Exp exp, TupleCalc tupleCalc, boolean nullCheck) Creates a TupleValueCalc.Creates a ValueCalc. -
Uses of Exp in mondrian.mdx
Modifier and TypeClassDescriptionclass
Usage of aDimension
as an MDX expression.class
Usage of aHierarchy
as an MDX expression.class
Usage of aLevel
as an MDX expression.class
Usage of aMember
as an MDX expression.class
Usage of aNamedSet
in an MDX expression.class
MDX expression which is a usage of aParameter
.final class
AResolvedFunCall
is a function applied to a list of operands, which has been validated and resolved to afunction definition
.class
An expression consisting of a named function or operator applied to a set of arguments.Modifier and TypeMethodDescriptionResolvedFunCall.getArg
(int index) Returns the Exp argument at the specified index.UnresolvedFunCall.getArg
(int index) Returns the Exp argument at the specified index.Exp[]
ResolvedFunCall.getArgs()
Returns the internal array of Exp arguments.Exp[]
UnresolvedFunCall.getArgs()
Returns the internal array of Exp arguments.protected Exp[]
MdxVisitorImpl.visitArray
(Exp[] args) Visits an array of expressions.Modifier and TypeMethodDescriptionprotected Exp[]
MdxVisitorImpl.visitArray
(Exp[] args) Visits an array of expressions.ModifierConstructorDescriptionResolvedFunCall
(FunDef funDef, Exp[] args, Type returnType) Creates a function call.UnresolvedFunCall
(String name, Exp[] args) Creates a function call withSyntax.Function
syntax.UnresolvedFunCall
(String name, Syntax syntax, Exp[] args) Creates a function call. -
Uses of Exp in mondrian.olap
Modifier and TypeInterfaceDescriptioninterface
AFunCall
is a function applied to a list of operands.Modifier and TypeClassDescriptionclass
Skeleton implementation ofExp
interface.class
Multi-part identifier.class
Represents a constant value, such as a string or number, in a parse tree.Modifier and TypeMethodDescriptionValidates this expression.Exp.clone()
abstract Exp
ExpBase.clone()
protected static Exp[]
ExpBase.cloneArray
(Exp[] a) FunDef.createCall
(Validator validator, Exp[] args) Creates an expression which represents a call to this function with a given set of arguments.static Exp
Util.createExpr
(OlapElement element) Converts an olap element (dimension, hierarchy, level or member) into an expression representing a usage of that element in an MDX statement.FunCall.getArg
(int index) Returns theindex
th argument to this function call.Exp[]
FunCall.getArgs()
Returns the arguments to this function.Parameter.getDefaultExp()
Returns the expression which provides the default value for this Parameter.ParameterImpl.getDefaultExp()
ExpCacheDescriptor.getExp()
MemberProperty.getExp()
NamedSet.getExp()
Returns the expression used to derive this named set.Query.ScopedNamedSet.getExp()
SetBase.getExp()
Formula.getExpression()
Member.getExpression()
MemberBase.getExpression()
Returns the expression by which this member is calculated.QueryAxis.getSet()
Returns the expression which is used to compute the value of this axis.DmvQuery.getWhereExpression()
static Exp
Util.lookup
(Query q, List<Id.Segment> nameParts, boolean allowProp) Converts an identifier into an expression by resolving its parts into an OLAP object (dimension, hierarchy, level or member) within the context of a query.static Exp
Util.lookup
(Query q, SchemaReader schemaReader, List<Id.Segment> segments, boolean allowProp) Converts an identifier into an expression by resolving its parts into an OLAP object (dimension, hierarchy, level or member) within the context of a query.Connection.parseExpression
(String s) Parses an expresion.Parser.parseExpression
(MdxParserValidator.QueryPartFactory factory, Statement statement, String queryString, boolean debug, FunTable funTable) Parses a string to create anExp
.Validates an expression, and returns the expression it resolves to.Modifier and TypeMethodDescriptionvoid
Query.addFormula
(Id id, Exp exp) Adds a new formula specifying a set to an existing query.void
Query.addFormula
(Id id, Exp exp, MemberProperty[] memberProperties) Adds a new formula specifying a member to an existing query.boolean
Validator.canConvert
(int ordinal, Exp fromExp, int to, List<Resolver.Conversion> conversions) Returns whether we can convert an argument to a parameter type.protected static Exp[]
ExpBase.cloneArray
(Exp[] a) Query.compileExpression
(Exp exp, boolean scalar, ResultStyle resultStyle) Compiles an expression, using a cached compiled expression if available.FunDef.createCall
(Validator validator, Exp[] args) Creates an expression which represents a call to this function with a given set of arguments.Validator.createOrLookupParam
(boolean definition, String name, Type type, Exp defaultExp, String description) Creates or retrieves the parameter corresponding to a "Parameter" or "ParamRef" function call.Query.createScopedNamedSet
(String name, QueryPart scope, Exp expr) Creates a named set defined by an alias.Resolves a function call to a particular function.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.Evaluator.getSetEvaluator
(Exp exp, boolean create) Returns an evaluator for a set.static int[]
Parser.FactoryImpl.makeDmvQuery
(String tableName, List<String> columns, Exp whereExpression) Parser.FactoryImpl.makeQuery
(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation) void
ParameterImpl.setDefaultExp
(Exp defaultExp) void
void
Sets the expression which is used to compute the value of this axis.void
FunDef.unparse
(Exp[] args, PrintWriter pw) Converts a function call into MDX source code.void
Syntax.unparse
(String fun, Exp[] args, PrintWriter pw) Converts a call to a function of this syntax into source code.static String
Converts an expression to a string.static void
ExpBase.unparseList
(PrintWriter pw, Exp[] exps, String start, String mid, String end) Validates an expression, and returns the expression it resolves to.Modifier and TypeMethodDescriptionParser.FactoryImpl.makeDrillThrough
(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList) ModifierConstructorDescriptionExpCacheDescriptor
(Exp exp, Calc calc, Evaluator evaluator) Creates a descriptor with a given compiled expression.ExpCacheDescriptor
(Exp exp, ExpCompiler compiler) Creates a descriptor.ExpCacheDescriptor
(Exp exp, Evaluator evaluator) Creates a descriptor.Constructs formula specifying a set.Formula
(Id id, Exp exp, MemberProperty[] memberProperties) Constructs a formula specifying a member.MemberProperty
(String name, Exp exp) ParameterImpl
(String name, Exp defaultExp, String description, Type type) QueryAxis
(boolean nonEmpty, Exp set, AxisOrdinal axisOrdinal, QueryAxis.SubtotalVisibility subtotalVisibility) Creates an axis with no dimension properties.QueryAxis
(boolean nonEmpty, Exp set, AxisOrdinal axisOrdinal, QueryAxis.SubtotalVisibility subtotalVisibility, Id[] dimensionProperties) Creates an axis. -
Uses of Exp in mondrian.olap.fun
Modifier and TypeMethodDescriptionFunDefBase.createCall
(Validator validator, Exp[] args) NamedSetCurrentFunDef.createCall
(Validator validator, Exp[] args) NamedSetCurrentOrdinalFunDef.createCall
(Validator validator, Exp[] args) NativizeSetFunDef.createCall
(Validator validator, Exp[] args) ParameterFunDef.createCall
(Validator validator, Exp[] args) VisualTotalsFunDef.VisualTotalMember.getExpression()
protected Exp
AbstractAggregateFunDef.validateArg
(Validator validator, Exp[] args, int i, int category) protected Exp
FunDefBase.validateArg
(Validator validator, Exp[] args, int i, int category) Validates an argument to a call to this function.protected Exp
VisualTotalsFunDef.validateArg
(Validator validator, Exp[] args, int i, int category) Modifier and TypeMethodDescriptionFunDefBase.createCall
(Validator validator, Exp[] args) NamedSetCurrentFunDef.createCall
(Validator validator, Exp[] args) NamedSetCurrentOrdinalFunDef.createCall
(Validator validator, Exp[] args) NativizeSetFunDef.createCall
(Validator validator, Exp[] args) ParameterFunDef.createCall
(Validator validator, Exp[] args) protected abstract FunDef
MultiResolver.createFunDef
(Exp[] args, FunDef dummyFunDef) protected FunDef
ParameterFunDef.ParameterResolver.createFunDef
(Exp[] args, FunDef dummyFunDef) protected FunDef
ParameterFunDef.ParamRefResolver.createFunDef
(Exp[] args, FunDef dummyFunDef) protected FunDef
ReflectiveMultiResolver.createFunDef
(Exp[] args, FunDef dummyFunDef) static String
ParameterFunDef.getParameterName
(Exp[] args) static Type
ParameterFunDef.getParameterType
(Exp[] args) Returns an approximate type for a parameter, based upon the 1'th argument.CrossJoinFunDef.getResultType
(Validator validator, Exp[] args) ExistingFunDef.getResultType
(Validator validator, Exp[] args) FunDefBase.getResultType
(Validator validator, Exp[] args) Returns the type of a call to this function with a given set of arguments.IifFunDef.getResultType
(Validator validator, Exp[] args) MemberLevelFunDef.getResultType
(Validator validator, Exp[] args) ParameterFunDef.getResultType
(Validator validator, Exp[] args) ParenthesesFunDef.getResultType
(Validator validator, Exp[] args) SetFunDef.getResultType
(Validator validator, Exp[] args) TupleFunDef.getResultType
(Validator validator, Exp[] args) CacheFunDef.CacheFunResolver.resolve
(Exp[] args, Validator validator, List<Resolver.Conversion> conversions) MultiResolver.resolve
(Exp[] args, Validator validator, List<Resolver.Conversion> conversions) Resolver.resolve
(Exp[] args, Validator validator, List<Resolver.Conversion> conversions) Given a particular set of arguments the function is applied to, returns the correct overloaded form of the function.UdfResolver.resolve
(Exp[] args, Validator validator, List<Resolver.Conversion> conversions) static FunDef
FunUtil.resolveFunArgs
(Validator validator, FunDef funDef, Exp[] args, Exp[] newArgs, String name, Syntax syntax) Validates the arguments to a function and resolves the function.void
VisualTotalsFunDef.VisualTotalMember.setExpression
(Exp exp) void
CacheFunDef.unparse
(Exp[] args, PrintWriter pw) void
FunDefBase.unparse
(Exp[] args, PrintWriter pw) void
ParenthesesFunDef.unparse
(Exp[] args, PrintWriter pw) void
SetFunDef.unparse
(Exp[] args, PrintWriter pw) void
TupleFunDef.unparse
(Exp[] args, PrintWriter pw) protected Exp
AbstractAggregateFunDef.validateArg
(Validator validator, Exp[] args, int i, int category) protected Exp
FunDefBase.validateArg
(Validator validator, Exp[] args, int i, int category) Validates an argument to a call to this function.protected Exp
VisualTotalsFunDef.validateArg
(Validator validator, Exp[] args, int i, int category) static boolean
FunUtil.worthCaching
(Exp exp) Returns whether an expression is worth wrapping in "Cache( ...static ResolvedFunCall
Creates a call to the set operator with a given collection of expressions.Modifier and TypeMethodDescriptionvoid
Applies this conversion to its argument, modifying the argument list in place.ModifierConstructorDescriptionAggregateCalc
(Exp exp, ListCalc listCalc, Calc calc) AggregateCalc
(Exp exp, ListCalc listCalc, Calc calc, Member member) CalcImpl
(Exp exp, HierarchyCalc hierarchyCalc) CalcImpl
(Exp exp, HierarchyCalc hierarchyCalc) CalcImpl
(Exp exp, MemberCalc memberCalc) CalcImpl
(Exp exp, MemberCalc memberCalc) CalcImpl
(Exp exp, MemberCalc memberCalc) Creates a CalcExprIterCalc
(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles) FixedCalcImpl
(Exp exp, Hierarchy hierarchy) protected
NativeListCalc
(ResolvedFunCall call, Calc[] calcs, ExpCompiler compiler, mondrian.olap.fun.NativizeSetFunDef.SubstitutionMap substitutionMap, Exp originalExp) SetListCalc
(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles) -
Uses of Exp in mondrian.parser
Modifier and TypeMethodDescriptionfinal Exp
MdxParserImpl.atom()
final Exp
MdxParserImpl.caseExpression()
final Exp
MdxParserImpl.expression()
final Exp
MdxParserImpl.expressionEof()
final Exp
MdxParserImpl.expressionOrEmpty()
final Exp
MdxParserImpl.factor()
final Exp
MdxParserImpl.formulaExpression()
JavaccParserValidatorImpl.parseExpression
(Statement statement, String queryString, boolean debug, FunTable funTable) MdxParserValidator.parseExpression
(Statement statement, String queryString, boolean debug, FunTable funTable) MdxParserValidatorImpl.parseExpression
(Statement statement, String queryString, boolean debug, FunTable funTable) final Exp
MdxParserImpl.primary()
final Exp
MdxParserImpl.segmentOrFuncall
(Exp left) final Exp
MdxParserImpl.term()
final Exp
MdxParserImpl.term2()
final Exp
MdxParserImpl.term3()
final Exp
MdxParserImpl.term4()
final Exp
MdxParserImpl.term5()
final Exp
MdxParserImpl.unaliasedExpression()
Modifier and TypeMethodDescriptionMdxParserImpl.expList()
MdxParserImpl.expOrEmptyList()
MdxParserImpl.returnItemList()
Modifier and TypeMethodDescriptionMdxParserValidator.QueryPartFactory.makeDmvQuery
(String tableName, List<String> columns, Exp whereExpression) Creates aDmvQuery
object.MdxParserValidator.QueryPartFactory.makeQuery
(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation) Creates aQuery
object.final Exp
MdxParserImpl.segmentOrFuncall
(Exp left) Modifier and TypeMethodDescriptionMdxParserValidator.QueryPartFactory.makeDrillThrough
(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList) Creates aDrillThrough
object. -
Uses of Exp in mondrian.rolap
Modifier and TypeMethodDescriptionRolapSchemaParameter.getDefaultExp()
DelegatingRolapMember.getExpression()
RolapCalculatedMember.getExpression()
RolapCubeMember.getExpression()
RolapHierarchy.LimitedRollupMember.getExpression()
RolapResult.CompoundSlicerRolapMember.getExpression()
RolapConnection.parseExpression
(String expr) Modifier and TypeMethodDescriptionRolapEvaluator.getActiveNativeExpansions()
Set of expressions actively being expanded.Modifier and TypeMethodDescriptionstatic boolean
SqlConstraintUtils.containsValidMeasure
(Exp... expressions) RolapNativeRegistry.createEvaluator
(RolapEvaluator evaluator, FunDef fun, Exp[] args) Returns the matching NativeEvaluator or null iffun
can not be executed in SQL for the given context and arguments.protected Evaluator.SetEvaluator
RolapResult.RolapResultEvaluatorRoot.evaluateSet
(Exp exp, boolean create) static void
SqlConstraintUtils.expandExpressions
(Member member, Exp expression, Evaluator evaluator, TupleConstraintStruct expandedSet) RolapNativeSql.generateFilterCondition
(Exp exp) RolapNativeSql.generateTopCountOrderBy
(Exp exp) Generates an aggregate of a measure, e.g.RolapSchemaReader.getNativeSetEvaluator
(FunDef fun, Exp[] args, Evaluator evaluator, Calc calc) final Evaluator.SetEvaluator
RolapEvaluator.getSetEvaluator
(Exp exp, boolean create) static boolean
SqlConstraintUtils.isSupportedExpressionForCalculatedMember
(Exp expression) -
Uses of Exp in mondrian.rolap.sql
Modifier and TypeMethodDescriptionList<CrossJoinArg[]>
CrossJoinArgFactory.checkCrossJoin
(RolapEvaluator evaluator, FunDef fun, Exp[] args, boolean returnAny) Checks forCrossJoin(<set1>, <set2>)
, where set1 and set2 are one ofmember.children
,level.members
ormember.descendants
.List<CrossJoinArg[]>
CrossJoinArgFactory.checkCrossJoinArg
(RolapEvaluator evaluator, Exp exp) Scans for memberChildren, levelMembers, memberDescendants, crossJoin.