Package org.pentaho.commons.connection
Interface IPentahoMetaData
-
- All Known Implementing Classes:
AbstractPentahoMetaData,MemoryMetaData
public interface IPentahoMetaDataDefines the methods that must be supported for obtaining metadata about a source of data.- Author:
- wseyler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ObjectgetAttribute(int rowNo, int columnNo, String attributeName)get an attribute from the metadataintgetColumnCount()Object[][]getColumnHeaders()intgetColumnIndex(String value)Gets the 0-based column number for a specified column header value.intgetColumnIndex(String[] values)Gets the 0-based column number for a set of column header values.Object[][]getRowHeaders()Deprecated.intgetRowIndex(String value)Gets the 0-based row number for a specified row header value.intgetRowIndex(String[] values)Gets the 0-based row number for a set of row header values.
-
-
-
Method Detail
-
getColumnHeaders
Object[][] getColumnHeaders()
- Returns:
- a 2D grid that represents column headers. NOTE: 2D data will contain a column header that is 1 x N where N is the number of columns in the data. Multidimensional data will return N x M where N is the number of dimensions and M is the number of columns. With the 0 index for N representing the innermost dimension.
-
getRowHeaders
@Deprecated Object[][] getRowHeaders()
Deprecated.- 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 to IMultiDimensionalMetaData
-
getColumnIndex
int getColumnIndex(String value)
Gets the 0-based column number for a specified column header value. If the column header cannot be found -1 is returned. If there is more than 1 column header dimentsions -1 is returned.- Parameters:
value- The column header value to search for.- Returns:
- The 0-based index of the column
- Throws:
Exception
-
getColumnIndex
int getColumnIndex(String[] values)
Gets the 0-based column number for a set of column header values. If the column header cannot be found -1 is returned. If the number of column header dimensions does not match the number of values provided -1 is returned.- Parameters:
value- The column header value to search for.- Returns:
- The 0-based index of the column
-
getRowIndex
int getRowIndex(String value)
Gets the 0-based row number for a specified row header value. If the row header cannot be found -1 is returned. If there is more than 1 row header dimentsions -1 is returned.- Parameters:
value- The row header value to search for.- Returns:
- The 0-based index of the row
- Throws:
Exception
-
getRowIndex
int getRowIndex(String[] values)
Gets the 0-based row number for a set of row header values. If the row header cannot be found -1 is returned. If the number of row header dimensions does not match the number of values provided -1 is returned.- Parameters:
value- The row header value to search for.- Returns:
- The 0-based index of the row
-
getColumnCount
int getColumnCount()
- Returns:
- Count of columns returned.
-
-