Package org.pentaho.commons.connection
Class MetaDataUtil
- java.lang.Object
-
- org.pentaho.commons.connection.MetaDataUtil
-
public class MetaDataUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description MetaDataUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]generateColumnNames(Object[][] columnHeaders, Object[][] rowHeaders, String[] rowHeaderNames, String columnNameFormatStr)Generates a set of column names given column headers, row headers (optional), row header names (optional) and a format string for the column headers.
-
-
-
Method Detail
-
generateColumnNames
public static String[] generateColumnNames(Object[][] columnHeaders, Object[][] rowHeaders, String[] rowHeaderNames, String columnNameFormatStr)
Generates a set of column names given column headers, row headers (optional), row header names (optional) and a format string for the column headers. The number of column names returned will be equal to the number of row headers in the first row of row headers and the number of columns in the first row of column headers. It is assumed that the row and column headers arrays are not ragged. The row headers can be null. The format string can be null.- Parameters:
columnHeaders-rowHeaders-rowHeaderNames-columnNameFormatStr-- Returns:
-
-