Package mondrian.calc.impl

Examples of mondrian.calc.impl.ArrayTupleList


        public TupleListBuilder(
            SchemaReader schemaReader, Cube cube, List<Hierarchy> hierarchyList)
        {
            super(schemaReader, cube, hierarchyList);
            tupleList = new ArrayTupleList(hierarchyList.size());
        }
View Full Code Here


        Member [] tupleMembersArity3 =
            new Member[] {
                waMember,
                femaleMember};

        TupleList tl = new ArrayTupleList(2);
        tl.add(Arrays.asList(tupleMembersArity1));
        tl.add(Arrays.asList(tupleMembersArity2));
        tl.add(Arrays.asList(tupleMembersArity3));

        TupleList optimized =
            optimizeChildren(tl);
        assertEquals(
            "[[[Store].[USA], [Gender].[All Gender]], [[Store].[USA], [Gender].[F]]]",
View Full Code Here

                if (list1.isEmpty()) {
                    return list0;
                }
                final Set<List<Member>> set1 = new HashSet<List<Member>>(list1);
                final TupleList result =
                    new ArrayTupleList(list0.getArity(), list0.size());
                for (List<Member> tuple1 : list0) {
                    if (!set1.contains(tuple1)) {
                        result.add(tuple1);
                    }
                }
                return result;
            }
        };
View Full Code Here

        buf.append('}');
        return buf.toString();
    }

    protected TupleList makeListTuple(List<List<Member>> ms) {
        final TupleList list = new ArrayTupleList(ms.get(0).size());
        for (List<Member> m : ms) {
            list.add(m);
        }
        return list;
    }
View Full Code Here

TOP

Related Classes of mondrian.calc.impl.ArrayTupleList

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.