Package mondrian.rolap.agg

Examples of mondrian.rolap.agg.AggregationManager


        assertEquals(5, caChildren.size());

        // Load cell data and check it is in cache
        executeQuery(
            "select {[Measures].[Unit Sales]} on columns, {[Retail].[CA]} on rows from [Sales]");
        final AggregationManager aggMgr =
            ((RolapConnection) conn).getServer().getAggregationManager();
        assertEquals(
            Double.valueOf("74748"),
            aggMgr.getCellFromAllCaches(
                AggregationManager.makeRequest(cacheRegionMembers)));

        // Now tell the cache that [CA].[Berkeley] is new
        final CacheControl.MemberEditCommand command =
            cc.createAddCommand(berkeleyMember);
        cc.execute(command);

        // test that cells have been removed
        assertNull(
            aggMgr.getCellFromAllCaches(
                AggregationManager.makeRequest(cacheRegionMembers)));

        tc.assertAxisReturns(
            "[Retail].[CA].Children",
            "[Retail].[CA].[Alameda]\n"
View Full Code Here


        assertEquals(5, caChildren.size());

        // Load cell data and check it is in cache
        executeQuery(
            "select {[Measures].[Unit Sales]} on columns, {[Retail].[CA].[Alameda]} on rows from [Sales]");
        final AggregationManager aggMgr =
            ((RolapConnection) conn).getServer().getAggregationManager();
        assertEquals(
            Double.valueOf("2117"),
            aggMgr.getCellFromAllCaches(
                AggregationManager.makeRequest(cacheRegionMembers)));

        // Now tell the cache that [CA].[San Francisco] has been removed.
        final CacheControl.MemberEditCommand command =
            cc.createDeleteCommand(sfCubeMember);
        cc.execute(command);

        // Children of CA should be 4
        assertEquals(
            4,
            memberCache.getChildrenFromCache(caMember, null).size());

        // test that cells have been removed
        assertNull(
            aggMgr.getCellFromAllCaches(
                AggregationManager.makeRequest(cacheRegionMembers)));

        // The list of children should be updated.
        tc.assertAxisReturns(
            "[Retail].[CA].Children",
View Full Code Here

        boolean execute)
    {
        super(execution, null);

        this.point = CellKey.Generator.newCellKey(axes.length);
        final AggregationManager aggMgr =
            execution.getMondrianStatement()
                .getMondrianConnection()
                .getServer().getAggregationManager();
        this.aggregatingReader = aggMgr.getCacheCellReader();
        final int expDeps =
            MondrianProperties.instance().TestExpDependencies.get();
        if (expDeps > 0) {
            this.evaluator = new RolapDependencyTestingEvaluator(this, expDeps);
        } else {
View Full Code Here

        // forgiving to applications which have slightly mismatched
        // specifications of the servers where they create and retrieve the
        // entry.
        this.lockBox = registry.lockBox;

        this.aggMgr = new AggregationManager(this);

        this.shepherd = new RolapResultShepherd();

        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("new MondrianServer: id=" + id);
View Full Code Here

TOP

Related Classes of mondrian.rolap.agg.AggregationManager

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.