Search in sources :

Example 1 with QueryPrintWriter

use of mondrian.mdx.QueryPrintWriter in project mondrian by pentaho.

the class Util method unparse.

/**
 * Converts an query to a string.
 */
public static String unparse(Query query) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new QueryPrintWriter(sw);
    query.unparse(pw);
    return sw.toString();
}
Also used : StringWriter(java.io.StringWriter) QueryPrintWriter(mondrian.mdx.QueryPrintWriter) PrintWriter(java.io.PrintWriter) QueryPrintWriter(mondrian.mdx.QueryPrintWriter)

Aggregations

PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 QueryPrintWriter (mondrian.mdx.QueryPrintWriter)1