public class MDXMetaData
extends org.pentaho.commons.connection.AbstractPentahoMetaData
implements org.pentaho.commons.connection.IMultiDimensionalMetaData
Modifier and Type | Field and Description |
---|---|
protected String |
columnNameFormatStr |
Constructor and Description |
---|
MDXMetaData() |
MDXMetaData(mondrian.olap.Result nativeResultSet) |
MDXMetaData(mondrian.olap.Result nativeResultSet,
boolean useExtendedColumnNames) |
Modifier and Type | Method and Description |
---|---|
protected Object[][] |
createColumnHeaders() |
protected String[] |
createColumnNames()
Flattens the row headers into column names (where the useful columns have useful names and the unuseful columns
have unusful names).
|
protected Object[][] |
createRowHeaders() |
void |
generateColumnNames() |
int |
getColumnCount() |
Object[][] |
getColumnHeaders() |
String |
getColumnName(int columnNumber) |
String[] |
getFlattenedColumnNames() |
String[] |
getRowHeaderNames() |
Object[][] |
getRowHeaders() |
protected void |
setColumnHeaders(Object[][] columnHeaders) |
void |
setColumnNameFormat(String formatStr) |
protected void |
setRowHeaders(Object[][] rowHeaders) |
protected String columnNameFormatStr
public MDXMetaData()
public MDXMetaData(mondrian.olap.Result nativeResultSet, boolean useExtendedColumnNames)
connection
- public MDXMetaData(mondrian.olap.Result nativeResultSet)
connection
- protected Object[][] createColumnHeaders()
protected Object[][] createRowHeaders()
protected String[] createColumnNames()
public String getColumnName(int columnNumber)
public int getColumnCount()
getColumnCount
in interface org.pentaho.commons.connection.IPentahoMetaData
getColumnCount
in class org.pentaho.commons.connection.AbstractPentahoMetaData
public Object[][] getColumnHeaders()
getColumnHeaders
in interface org.pentaho.commons.connection.IPentahoMetaData
getColumnHeaders
in class org.pentaho.commons.connection.AbstractPentahoMetaData
public Object[][] getRowHeaders()
getRowHeaders
in interface org.pentaho.commons.connection.IMultiDimensionalMetaData
getRowHeaders
in interface org.pentaho.commons.connection.IPentahoMetaData
getRowHeaders
in class org.pentaho.commons.connection.AbstractPentahoMetaData
protected void setColumnHeaders(Object[][] columnHeaders)
protected void setRowHeaders(Object[][] rowHeaders)
public String[] getRowHeaderNames()
getRowHeaderNames
in interface org.pentaho.commons.connection.IMultiDimensionalMetaData
public void setColumnNameFormat(String formatStr)
setColumnNameFormat
in interface org.pentaho.commons.connection.IMultiDimensionalMetaData
public void generateColumnNames()
public String[] getFlattenedColumnNames()
getFlattenedColumnNames
in interface org.pentaho.commons.connection.IMultiDimensionalMetaData
Copyright © 2017 Hitachi Vantara. All rights reserved.