Class AbstractPentahoMetaData

    • Constructor Detail

      • AbstractPentahoMetaData

        public AbstractPentahoMetaData()
    • Method Detail

      • getColumnIndex

        public int getColumnIndex​(String value)
        Description copied from interface: IPentahoMetaData
        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.
        Specified by:
        getColumnIndex in interface IPentahoMetaData
        Parameters:
        value - The column header value to search for.
        Returns:
        The 0-based index of the column
      • getColumnIndex

        public int getColumnIndex​(String[] values)
        Description copied from interface: IPentahoMetaData
        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.
        Specified by:
        getColumnIndex in interface IPentahoMetaData
        Returns:
        The 0-based index of the column
      • getRowIndex

        public int getRowIndex​(String value)
        Description copied from interface: IPentahoMetaData
        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.
        Specified by:
        getRowIndex in interface IPentahoMetaData
        Parameters:
        value - The row header value to search for.
        Returns:
        The 0-based index of the row
      • getRowIndex

        public int getRowIndex​(String[] values)
        Description copied from interface: IPentahoMetaData
        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.
        Specified by:
        getRowIndex in interface IPentahoMetaData
        Returns:
        The 0-based index of the row
      • getColumnHeaders

        public abstract Object[][] getColumnHeaders()
        Specified by:
        getColumnHeaders in interface IPentahoMetaData
        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

        public abstract Object[][] getRowHeaders()
        Specified by:
        getRowHeaders in interface IPentahoMetaData
        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
      • getAttribute

        public Object getAttribute​(int rowNo,
                                   int columnNo,
                                   String attributeName)
        Description copied from interface: IPentahoMetaData
        get an attribute from the metadata
        Specified by:
        getAttribute in interface IPentahoMetaData
        Parameters:
        rowNo - the row number
        columnNo - the column number
        attributeName - the attribute name
        Returns:
        the attribute