Package mondrian.rolap.sql
Class CrossJoinArgFactory
java.lang.Object
mondrian.rolap.sql.CrossJoinArgFactory
Creates CrossJoinArgs for use in constraining SQL queries.
- Since:
- Dec 15, 2009
- Author:
- kwalker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildConstraintFromAllAxes
(RolapEvaluator evaluator) List<CrossJoinArg[]>
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[]>
checkCrossJoinArg
(RolapEvaluator evaluator, Exp exp) Scans for memberChildren, levelMembers, memberDescendants, crossJoin.
-
Field Details
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
CrossJoinArgFactory
public CrossJoinArgFactory(boolean restrictMemberTypes)
-
-
Method Details
-
buildConstraintFromAllAxes
-
checkCrossJoinArg
Scans for memberChildren, levelMembers, memberDescendants, crossJoin. -
checkCrossJoin
public List<CrossJoinArg[]> 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
.- Parameters:
evaluator
- Evaluator to use if inputs are to be evaluatedfun
- The function, either "CrossJoin" or "NonEmptyCrossJoin"args
- Inputs to the CrossJoinreturnAny
- indicates we should return any valid crossjoin args- Returns:
- array of CrossJoinArg representing the inputs
-