Package mondrian.spi

Examples of mondrian.spi.ProfileHandler


        if (RolapUtil.PROFILE_LOGGER.isDebugEnabled()
            && statement.getProfileHandler() == null)
        {
            statement.enableProfiling(
                new ProfileHandler() {
                    public void explain(String plan, QueryTiming timing) {
                        if (timing != null) {
                            plan += "\n" + timing;
                        }
                        RolapUtil.PROFILE_LOGGER.debug(plan);
View Full Code Here


                validator,
                resultStyleList);

        final int expDeps =
            MondrianProperties.instance().TestExpDependencies.get();
        final ProfileHandler profileHandler = statement.getProfileHandler();
        if (profileHandler != null) {
            // Cannot test dependencies and profile at the same time. Profiling
            // trumps.
            compiler = RolapUtil.createProfilingCompiler(compiler);
        } else if (expDeps > 0) {
View Full Code Here

    public void setStatementProfiling(
        OlapStatement statement,
        final PrintWriter pw)
    {
        ((MondrianOlap4jStatement) statement).enableProfiling(
            new ProfileHandler() {
                public void explain(String plan, QueryTiming timing) {
                    pw.println(plan);
                    if (timing != null) {
                        pw.println(timing);
                    }
View Full Code Here

    public void close() {
        if (closed) {
            return;
        }
        this.closed = true;
        final ProfileHandler profileHandler =
            olap4jStatement.getProfileHandler();
        if (profileHandler != null) {
            final StringWriter stringWriter = new StringWriter();
            final PrintWriter printWriter = new PrintWriter(stringWriter);
            olap4jStatement.getQuery().explain(printWriter);
            printWriter.close();
            profileHandler.explain(stringWriter.toString(), getQueryTiming());
        }
        if (this.result != null) {
            this.result.close();
        }
        olap4jStatement.onResultSetClose(this);
View Full Code Here

TOP

Related Classes of mondrian.spi.ProfileHandler

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.