final Comparable[] keys =
entry.getValue().toArray(
new Comparable[entry.getValue().size()]);
if (keys.length == 1 && keys[0].equals(true)) {
list.add(
new SegmentColumn(
entry.getKey(),
-1,
null));
} else {
Arrays.sort(
keys,
Util.SqlNullSafeComparator.instance);
//noinspection unchecked
list.add(
new SegmentColumn(
entry.getKey(),
-1,
new ArraySortedSet(keys)));
}
}
}
public void visit(MemberRangeCellRegion region) {
// We translate all ranges into wildcards.
// FIXME Optimize this by resolving the list of members
// into an actual list of values for ConstrainedColumn
list.add(
new SegmentColumn(
region.level.getKeyExp().getGenericExpression(),
-1,
null));
}
};