Package mondrian.calc.impl

Examples of mondrian.calc.impl.UnaryTupleList


        final ListCalc listCalc = compiler.compileList(call.getArg(0));
        return new AbstractListCalc(call, new Calc[] {listCalc}) {
            public TupleList evaluateList(Evaluator evaluator) {
                final TupleList list =
                    listCalc.evaluateList(evaluator);
                return new UnaryTupleList(
                    addCalculatedMembers(list.slice(0), evaluator));
            }
        };
    }
View Full Code Here


        o = modulos.getCellOrdinal(pos);
        assertTrue("Ordinals are not equal", oMany == o);
    }

    TupleList newPositionList(int size) {
        return new UnaryTupleList(
            Collections.<Member>nCopies(size, null));
    }
View Full Code Here

                    int searchDepth = -1;
                    if (levelCalc != null) {
                        Level level = levelCalc.evaluateLevel(evaluator);
                        searchDepth = level.getDepth();
                    }
                    return new UnaryTupleList(
                        drill(searchDepth, list.slice(0), evaluator));
                }
            };
        } else {
            return new AbstractListCalc(call, new Calc[] {listCalc, indexCalc})
View Full Code Here

        {
            public TupleList evaluateList(Evaluator evaluator) {
                Member member = memberCalc.evaluateMember(evaluator);
                int indexValue = indexValueCalc.evaluateInteger(evaluator);

                return new UnaryTupleList(
                    lastPeriods(member, evaluator, indexValue));
            }
        };
    }
View Full Code Here

    }

    protected TupleList storeMembersCAAndOR(
        SchemaReader salesCubeSchemaReader)
    {
        return new UnaryTupleList(Arrays.asList(
            member(
                Id.Segment.toList(
                    "Store", "All Stores", "USA", "CA", "Alameda"),
                salesCubeSchemaReader),
            member(
View Full Code Here

    }

    protected TupleList productMembersPotScrubbersPotsAndPans(
        SchemaReader salesCubeSchemaReader)
    {
        return new UnaryTupleList(Arrays.asList(
            member(
                Id.Segment.toList(
                    "Product", "All Products", "Non-Consumable", "Household",
                    "Kitchen Products", "Pot Scrubbers", "Cormorant"),
                salesCubeSchemaReader),
View Full Code Here

                maleMember,
                femaleMember};
        } else {
            members = new Member[] {maleMember, femaleMember};
        }
        return new UnaryTupleList(Arrays.asList(members));
    }
View Full Code Here

            members = new Member[]{
                allMember("Store", salesCube), usaMember, canadaMember};
        } else {
            members = new Member[] {usaMember, canadaMember};
        }
        return new UnaryTupleList(Arrays.asList(members));
    }
View Full Code Here

                            i,
                            createMember(member, i, resultList, evaluator));
                    }
                }
            }
            return new UnaryTupleList(resultList);
        }
View Full Code Here

                    String string = stringCalc.evaluateString(evaluator);
                    if (string == null) {
                        throw newEvalException(
                            MondrianResource.instance().NullValue.ex());
                    }
                    return new UnaryTupleList(
                        parseMemberList(evaluator, string, hierarchy));
                }
            };
        } else {
            TupleType tupleType = (TupleType) elementType;
View Full Code Here

TOP

Related Classes of mondrian.calc.impl.UnaryTupleList

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.