This class is experimental. It is not part of the olap4j specification and is subject to change without notice.
167168169170171172173174175
* @return String representation of cell set */ public static String toString(CellSet cellSet) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); new TraditionalCellSetFormatter().format(cellSet, pw); pw.flush(); return sw.toString(); }
919293949596979899100101
static String toString(CellSet cellSet, Format format) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); switch (format) { case TRADITIONAL: new TraditionalCellSetFormatter().format(cellSet, pw); break; case COMPACT_RECTANGULAR: case RECTANGULAR: new RectangularCellSetFormatter( format == Format.COMPACT_RECTANGULAR)
104105106107108109110111112
1290129112921293129412951296129712981299
* @param cellSet Query result * @return Result as text */ public static String toString(CellSet cellSet) { final StringWriter sw = new StringWriter(); new TraditionalCellSetFormatter().format( cellSet, new PrintWriter(sw)); return sw.toString(); }