Package mondrian.server

Examples of mondrian.server.Execution


            SqlStatement stmt =
                RolapUtil.executeQuery(
                    dataSource,
                    query.toString(),
                    new Locus(
                        new Execution(
                            star.getSchema().getInternalConnection()
                                .getInternalStatement(),
                            0),
                        "AggStar.FactTable.makeNumberOfRows",
                        "Counting rows in aggregate table"));
View Full Code Here


            // Create a dummy DataSource which will throw a 'bomb' if it is
            // asked to execute a particular SQL statement, but will otherwise
            // behave exactly the same as the current DataSource.
            RolapUtil.setHook(new TriggerHook(trigger));
            Bomb bomb;
            final Execution execution =
                new Execution(
                    ((RolapConnection) getConnection()).getInternalStatement(),
                    1000);
            final AggregationManager aggMgr =
                execution.getMondrianStatement()
                    .getMondrianConnection()
                    .getServer().getAggregationManager();
            final Locus locus =
                new Locus(
                    execution,
View Full Code Here

            false);
        RolapSchemaPool.instance().clear();

        final RolapConnection conn = (RolapConnection) getConnection();
        final Statement statement = conn.getInternalStatement();
        final Execution execution = new Execution(statement, 0);
        locus = new Locus(execution, getName(), null);
        Locus.push(locus);
    }
View Full Code Here

                + "property " + prop.getPath() + " is false");
        }
        synchronized (MEMBER_CACHE_LOCK) {
            // Make sure that a Locus is in the Execution stack,
            // since some operations might require DB access.
            Execution execution;
            try {
                execution =
                    Locus.peek().execution;
            } catch (EmptyStackException e) {
                if (connection == null) {
                    throw new IllegalArgumentException("Connection required");
                }
                execution = new Execution(connection.getInternalStatement(), 0);
            }
            final Locus locus = new Locus(
                execution,
                "CacheControlImpl.execute",
                "when modifying the member cache.");
View Full Code Here

            rowCount = tableMap.get(key);
        } else {
            final Dialect dialect = star.getSqlQueryDialect();
            final List<StatisticsProvider> statisticsProviders =
                dialect.getStatisticsProviders();
            final Execution execution =
                new Execution(
                    star.getSchema().getInternalConnection()
                        .getInternalStatement(),
                    0);
            for (StatisticsProvider statisticsProvider : statisticsProviders) {
                rowCount = statisticsProvider.getTableCardinality(
View Full Code Here

            rowCount = queryMap.get(sql);
        } else {
            final Dialect dialect = star.getSqlQueryDialect();
            final List<StatisticsProvider> statisticsProviders =
                dialect.getStatisticsProviders();
            final Execution execution =
                new Execution(
                    star.getSchema().getInternalConnection()
                        .getInternalStatement(),
                    0);
            for (StatisticsProvider statisticsProvider : statisticsProviders) {
                rowCount = statisticsProvider.getQueryCardinality(
View Full Code Here

            rowCount = columnMap.get(key);
        } else {
            final Dialect dialect = star.getSqlQueryDialect();
            final List<StatisticsProvider> statisticsProviders =
                dialect.getStatisticsProviders();
            final Execution execution =
                new Execution(
                    star.getSchema().getInternalConnection()
                        .getInternalStatement(),
                    0);
            for (StatisticsProvider statisticsProvider : statisticsProviders) {
                rowCount = statisticsProvider.getColumnCardinality(
View Full Code Here

                        dialect,
                        testContext.getConnection().getDataSource(),
                        null,
                        null,
                        "customer",
                        new Execution(
                            ((RolapSchema)
                                testContext.getConnection().getSchema())
                                .getInternalConnection()
                                .getInternalStatement(),
                            0));
                if (statisticsProvider instanceof SqlStatisticsProvider) {
                    assertTrue(
                        "Row count estimate: " + rowCount + " (actual 10281)",
                        rowCount > 10000 && rowCount < 15000);
                }

                int valueCount =
                    statisticsProvider.getColumnCardinality(
                        dialect,
                        testContext.getConnection().getDataSource(),
                        null,
                        null,
                        "customer",
                        "gender",
                        new Execution(
                            ((RolapSchema)
                                testContext.getConnection().getSchema())
                                .getInternalConnection().getInternalStatement(),
                            0));
                assertTrue(
View Full Code Here

TOP

Related Classes of mondrian.server.Execution

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.