Class MDXResultSet
java.lang.Object
org.pentaho.platform.plugin.services.connections.mondrian.MDXResultSet
- All Implemented Interfaces:
org.pentaho.commons.connection.IDisposable
,org.pentaho.commons.connection.IMultiDimensionalResultSet
,org.pentaho.commons.connection.IPeekable
,org.pentaho.commons.connection.IPentahoResultSet
public class MDXResultSet
extends Object
implements org.pentaho.commons.connection.IPentahoResultSet, org.pentaho.commons.connection.IPeekable, org.pentaho.commons.connection.IMultiDimensionalResultSet
- Author:
- wseyler TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
-
Constructor Summary
ConstructorDescriptionMDXResultSet
(mondrian.olap.Result nativeResultSet, mondrian.olap.Connection nativeConnection, boolean useExtendedColumnNames) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
void
dispose()
int
Object[]
getDataColumn
(int column) Object[]
getDataRow
(int row) protected MDXMetaData
org.pentaho.commons.connection.IPentahoMetaData
protected mondrian.olap.Connection
protected mondrian.olap.Result
protected Object[]
int
int
getValueAt
(int row, int column) boolean
org.pentaho.commons.connection.IPentahoResultSet
Object[]
next()
Object[]
Object[]
peek()
Object[]
Object[]
void
setFormattedCellValues
(boolean formattedCellValues) Sets the 'formatted cell values' flag.protected void
setMdxMetaData
(MDXMetaData mdxMetaData) protected void
setNativeConnection
(mondrian.olap.Connection nativeConnection) protected void
setNativeResultSet
(mondrian.olap.Result nativeResultSet) protected void
setPeekRow
(Object[] peekRow)
-
Constructor Details
-
MDXResultSet
public MDXResultSet() -
MDXResultSet
public MDXResultSet(mondrian.olap.Result nativeResultSet, mondrian.olap.Connection nativeConnection, boolean useExtendedColumnNames) - Parameters:
useExtendedColumnNames
- if true, columnNames will follow the format: "[dimension_name].[hierarchy_name].[level_name]" otherwise the format for column names will be: "hierarchy_name{column_number}" Implemented as a flag to allow reports prior to platform version 2.1 (Liberty) to continue to execute as expected with the short column names, but if the developer sets the extendedColumnNames flag to true, can overcome the bug in BISERVER-1266.returnNullCells
- if true, returns null instead of 0.000000012345. This is configurable for backwards compatibility
-
-
Method Details
-
getMetaData
public org.pentaho.commons.connection.IPentahoMetaData getMetaData()- Specified by:
getMetaData
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
peekRowHeaders
-
peek
- Specified by:
peek
in interfaceorg.pentaho.commons.connection.IPeekable
-
next
- Specified by:
next
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
close
public void close()- Specified by:
close
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
closeConnection
public void closeConnection()- Specified by:
closeConnection
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.pentaho.commons.connection.IDisposable
-
isScrollable
public boolean isScrollable()- Specified by:
isScrollable
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getValueAt
- Specified by:
getValueAt
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
memoryCopy
public org.pentaho.commons.connection.IPentahoResultSet memoryCopy()- Specified by:
memoryCopy
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
beforeFirst
public void beforeFirst()- Specified by:
beforeFirst
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataColumn
- Specified by:
getDataColumn
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getDataRow
- Specified by:
getDataRow
in interfaceorg.pentaho.commons.connection.IPentahoResultSet
-
getNativeResultSet
protected mondrian.olap.Result getNativeResultSet() -
setNativeResultSet
protected void setNativeResultSet(mondrian.olap.Result nativeResultSet) -
getNativeConnection
protected mondrian.olap.Connection getNativeConnection() -
setNativeConnection
protected void setNativeConnection(mondrian.olap.Connection nativeConnection) -
getMdxMetaData
-
setMdxMetaData
-
getPeekRow
-
setPeekRow
-
getRowIndex
public int getRowIndex() -
nextFlattened
- Specified by:
nextFlattened
in interfaceorg.pentaho.commons.connection.IMultiDimensionalResultSet
-
peekFlattened
- Specified by:
peekFlattened
in interfaceorg.pentaho.commons.connection.IMultiDimensionalResultSet
-
setFormattedCellValues
public void setFormattedCellValues(boolean formattedCellValues) Sets the 'formatted cell values' flag. If this flag is set calls to getValueAt (and methods like next() and peek() that use getValueAt) returns the formatted value of the cell instead of the plain number. BISERVER-3543- Parameters:
formattedCellValues
-
-