Package org.pentaho.commons.connection
Interface IMultiDimensionalMetaData
-
- All Known Implementing Classes:
MemoryMetaData
public interface IMultiDimensionalMetaData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getFlattenedColumnNames()Gets the column names.String[]getRowHeaderNames()Gets the names of the row dimensionsObject[][]getRowHeaders()voidsetColumnNameFormat(String formatStr)Sets the column name format string.
-
-
-
Method Detail
-
getRowHeaders
Object[][] getRowHeaders()
- Returns:
- a 2D grid that represents row headers. NOTE: 2D data will return null for the row header. Multidimensional data will return N x M where M is the number of dimensions and N is the number of rows. With the 0 index for M representing the innermost dimension. This method has been moved here from IPentahoMetaData
-
getFlattenedColumnNames
String[] getFlattenedColumnNames()
Gets the column names. These names include the names of the row dimensions and flattened column headers- Returns:
-
getRowHeaderNames
String[] getRowHeaderNames()
Gets the names of the row dimensions- Returns:
-
setColumnNameFormat
void setColumnNameFormat(String formatStr)
Sets the column name format string. The values in the column headers will be inserted into the format template based on their index (0 based). e.g if the column headers are: 2009 2009 2008 Apr Jan Oct and the format string is {1}-{0} the column names will end up as: Apr-2009,Jan-2009,Oct-2008- Parameters:
formatStr-
-
-