com.sas.storage.olap.export
Class OLAPExporter

com.sas.storage.olap.export.OLAPExporter

public class OLAPExporter

Using a RelationalExportInterface object, writes multidimensional data into either a Writer or an OutputStream.

Since:
3.1

Constructor Summary
OLAPExporter()
          Default constructor.
 
Method Summary
static void writeToStream(ResultSetInterface model, java.io.OutputStream stream, RelationalExportInterface exporter)
          Using a RelationalExportInterface object, writes multidimensional data into an
static void writeToStream(ResultSetInterface model, java.io.OutputStream stream, RelationalExportInterface exporter, int startRow, int nRows, boolean isRawData, boolean repeatLabels)
          Using a RelationalExportInterface object, writes multidimensional data into an
static void writeToStream(ResultSetInterface model, java.io.Writer writer, RelationalExportInterface exporter)
          Using a RelationalExportInterface object, writes multidimensional data into a
static void writeToStream(ResultSetInterface model, java.io.Writer writer, RelationalExportInterface exporter, int startRow, int nRows, boolean isRawData, boolean repeatLabels)
          Using a RelationalExportInterface object, writes multidimensional data into a
static void writeToStream(ResultSetInterface model, java.io.Writer writer, RelationalExportInterface exporter, int startRow, int nRows, boolean isRawData, boolean repeatLabels, java.util.Locale locale)
          Using a RelationalExportInterface object, writes multidimensional data into a
static void writeToStream(ResultSetInterface model, java.io.Writer writer, RelationalExportInterface exporter, int startRow, int nRows, boolean isRawData, boolean repeatLabels, java.util.Locale locale, java.lang.String[] headers, java.lang.String[] footers)
          Using a RelationalExportInterface object, writes multidimensional data into a
Constructor Detail

OLAPExporter

public OLAPExporter()
Default constructor.

Method Detail

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.OutputStream stream,
                                 RelationalExportInterface exporter)
Using a RelationalExportInterface object, writes multidimensional data into an OutputStream.

Parameters:
model - The model that contains the data to write.
stream - The OutputStream object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the OutputStream.

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.Writer writer,
                                 RelationalExportInterface exporter)
Using a RelationalExportInterface object, writes multidimensional data into a Writer.

Parameters:
model - The model that contains the data to write.
writer - The Writer object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the Writer.

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.OutputStream stream,
                                 RelationalExportInterface exporter,
                                 int startRow,
                                 int nRows,
                                 boolean isRawData,
                                 boolean repeatLabels)
Using a RelationalExportInterface object, writes multidimensional data into an OutputStream.

Parameters:
model - The model that contains the data to write.
stream - The OutputStream object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the OutputStream.
startRow - The ordinal (0 based) of the data row in the table where to start exporting from.
nRows - The number of data rows to export. -1 means all.
isRawData - True if the data must be exported non formatted, false if the data must be exported formatted.
repeatLabels - True if the row labels have to be repeated in the exported data when the OLAP model is expanded, false otherwise.

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.Writer writer,
                                 RelationalExportInterface exporter,
                                 int startRow,
                                 int nRows,
                                 boolean isRawData,
                                 boolean repeatLabels)
Using a RelationalExportInterface object, writes multidimensional data into a Writer.

Parameters:
model - The model that contains the data to write.
writer - The Writer object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the Writer.
startRow - The ordinal (0 based) of the data row in the table where to start exporting from.
nRows - The number of data rows to export. -1 means all.
isRawData - True if the data must be exported non formatted, false if the data must be exported formatted.
repeatLabels - True if the row labels have to be repeated in the exported data when the OLAP model is expanded, false otherwise.

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.Writer writer,
                                 RelationalExportInterface exporter,
                                 int startRow,
                                 int nRows,
                                 boolean isRawData,
                                 boolean repeatLabels,
                                 java.util.Locale locale)
Using a RelationalExportInterface object, writes multidimensional data into a Writer.

Parameters:
model - The model that contains the data to write.
writer - The Writer object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the Writer.
startRow - The ordinal (0 based) of the data row in the table where to start exporting from.
nRows - The number of data rows to export. -1 means all.
isRawData - True if the data must be exported non formatted, false if the data must be exported formatted.
repeatLabels - True if the row labels have to be repeated in the exported data when the OLAP model is expanded, false otherwise.
locale - The Locale to use to transform the data.
See Also:
RelationalExportInterface

writeToStream

public static void writeToStream(ResultSetInterface model,
                                 java.io.Writer writer,
                                 RelationalExportInterface exporter,
                                 int startRow,
                                 int nRows,
                                 boolean isRawData,
                                 boolean repeatLabels,
                                 java.util.Locale locale,
                                 java.lang.String[] headers,
                                 java.lang.String[] footers)
Using a RelationalExportInterface object, writes multidimensional data into a Writer.

Parameters:
model - The model that contains the data to write.
writer - The Writer object to write to.
exporter - The RelationalExportInterface object used to get the data stream to write to the Writer.
startRow - The ordinal (0 based) of the data row in the table where to start exporting from.
nRows - The number of data rows to export. -1 means all.
isRawData - True if the data must be exported non formatted, false if the data must be exported formatted.
repeatLabels - True if the row labels have to be repeated in the exported data when the OLAP model is expanded, false otherwise.
locale - The Locale to use to transform the data.
headers - The headers to write above the data (each header on separate line)
footers - The footers to write below the data (each footer on separate line)
See Also:
RelationalExportInterface



Copyright © 2009 SAS Institute Inc. All Rights Reserved.