// default member if the hierarchy has no 'all' member)
return;
}
if (predicate instanceof MemberColumnPredicate) {
MemberColumnPredicate memberColumnPredicate =
(MemberColumnPredicate) predicate;
RolapMember member = memberColumnPredicate.getMember();
assert member.getLevel() == cubeLevel;
assert !member.isCalculated();
assert memberColumnPredicate.getMember().getKey() != null;
assert !member.isNull();
// use the member as constraint, this will give us some
// optimization potential
cacheRegion.addPredicate(column, predicate);
return;
} else if (predicate instanceof RangeColumnPredicate) {
RangeColumnPredicate rangeColumnPredicate =
(RangeColumnPredicate) predicate;
final ValueColumnPredicate lowerBound =
rangeColumnPredicate.getLowerBound();
RolapMember lowerMember;
if (lowerBound == null) {
lowerMember = null;
} else if (lowerBound instanceof MemberColumnPredicate) {
MemberColumnPredicate memberColumnPredicate =
(MemberColumnPredicate) lowerBound;
lowerMember = memberColumnPredicate.getMember();
} else {
throw new UnsupportedOperationException();
}
final ValueColumnPredicate upperBound =
rangeColumnPredicate.getUpperBound();
RolapMember upperMember;
if (upperBound == null) {
upperMember = null;
} else if (upperBound instanceof MemberColumnPredicate) {
MemberColumnPredicate memberColumnPredicate =
(MemberColumnPredicate) upperBound;
upperMember = memberColumnPredicate.getMember();
} else {
throw new UnsupportedOperationException();
}
MemberTuplePredicate predicate2 =
new MemberTuplePredicate(