use of mondrian.olap.type.SetType in project mondrian by pentaho.
the class CompoundPredicateInfo method makeCalculatedMemberPredicate.
private StarPredicate makeCalculatedMemberPredicate(RolapCubeMember member, RolapCube baseCube, Evaluator evaluator) {
assert member.getExpression() instanceof ResolvedFunCall;
ResolvedFunCall fun = (ResolvedFunCall) member.getExpression();
final Exp exp = fun.getArg(0);
final Type type = exp.getType();
if (type instanceof SetType) {
return makeSetPredicate(exp, evaluator);
} else if (type.getArity() == 1) {
return makeUnaryPredicate(member, baseCube, evaluator);
} else {
throw MondrianResource.instance().UnsupportedCalculatedMember.ex(member.getName(), null);
}
}
Aggregations