"Named set " + namedSet.getName() + ": starting evaluation");
}
list = DUMMY_LIST; // recursion detection
final RolapEvaluatorRoot root =
rrer.slicerEvaluator.root;
final Calc calc =
root.getCompiled(namedSet.getExp(), false, ResultStyle.ITERABLE);
Object o =
rrer.result.evaluateExp(
calc,
rrer.slicerEvaluator.push());
final List<T> rawList;
// Axes can be in two forms: list or iterable. If iterable, we
// need to materialize it, to ensure that all cell values are in
// cache.
if (o instanceof List) {
//noinspection unchecked
rawList = (List<T>) o;
} else {
Iterable<T> iter = Util.castToIterable(o);
rawList = new ArrayList<T>();
for (T e : iter) {
rawList.add(e);
}
}
if (RolapResult.LOGGER.isDebugEnabled()) {
final StringBuilder buf = new StringBuilder();
buf.append(this);
buf.append(": ");
buf.append("Named set ");
buf.append(namedSet.getName());
buf.append(" evaluated to:");
buf.append(Util.nl);
int arity = ((SetType) calc.getType()).getArity();
int rowCount = 0;
final int maxRowCount = 100;
if (arity == 1) {
for (Member t : Util.<Member>cast(rawList)) {
if (rowCount++ > maxRowCount) {