Package mondrian.spi

Examples of mondrian.spi.SegmentColumn


                        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));
                }
            };
View Full Code Here

TOP

Related Classes of mondrian.spi.SegmentColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.