Package org.olap4j.layout

Examples of org.olap4j.layout.RectangularCellSetFormatter$MatrixCell


            statement.executeOlapQuery(
                "SELECT {[store].[USA]} ON COLUMNS , {[Account].[1000]} ON ROWS\n"
                + "FROM [Budget]");

        // We use the utility formatter.
        RectangularCellSetFormatter formatter =
            new RectangularCellSetFormatter(false);

        // Print out.
        PrintWriter writer = new PrintWriter(System.out);
        formatter.format(cellSet, writer);
        writer.flush();

        statement.close();
        connection.close();
    }
View Full Code Here


        }

        // Now, nicely formatted.
        System.out.println();
        final PrintWriter pw = new PrintWriter(System.out);
        new RectangularCellSetFormatter(false).format(cellSet, pw);
        pw.flush();

        // Close the statement and connection.
        statement.close();
        connection.close();
View Full Code Here

        case TRADITIONAL:
            new TraditionalCellSetFormatter().format(cellSet, pw);
            break;
        case COMPACT_RECTANGULAR:
        case RECTANGULAR:
            new RectangularCellSetFormatter(
                format == Format.COMPACT_RECTANGULAR)
                .format(cellSet, pw);
            break;
        }
        pw.flush();
View Full Code Here

                queryString,
                new Util.Functor1<String, CellSet>() {
                    public String apply(CellSet param) {
                        StringWriter stringWriter = new StringWriter();
                        PrintWriter printWriter = new PrintWriter(stringWriter);
                        new RectangularCellSetFormatter(false)
                            .format(param, printWriter);
                        printWriter.flush();
                        return stringWriter.toString();
                    }
                });
View Full Code Here

        final OlapStatement statement1 =
            getTestContext().getOlap4jConnection().createStatement();
        CellSet cellSet = statement1.executeOlapQuery(queryString);
        StringWriter stringWriter = new StringWriter();
        new RectangularCellSetFormatter(true).format(
            cellSet,
            new PrintWriter(stringWriter));
        statement1.close();
        println(stringWriter);
View Full Code Here

                    strings[1] = String.valueOf(timing);
                }
            }
        );
        final CellSet cellSet = statement.executeOlapQuery(mdx);
        new RectangularCellSetFormatter(true).format(
            cellSet, new PrintWriter(new StringWriter()));
        cellSet.close();
        final String actual =
            strings[0].replaceAll(
                "callMillis=[0-9]+",
View Full Code Here

TOP

Related Classes of org.olap4j.layout.RectangularCellSetFormatter$MatrixCell

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.