Class MemoryMetaData

    • Field Detail

      • columnHeaders

        protected Object[][] columnHeaders
      • rowHeaders

        protected Object[][] rowHeaders
      • columnNames

        protected String[] columnNames
      • rowHeaderNames

        protected String[] rowHeaderNames
      • columnNameFormatStr

        protected String columnNameFormatStr
    • Constructor Detail

      • MemoryMetaData

        public MemoryMetaData​(Object[][] columnHeaders,
                              Object[][] rowHeaders,
                              String columnNameFormatStr,
                              String[] columnTypes,
                              String[] columnNames,
                              String[] rowHeaderNames)
      • MemoryMetaData

        @Deprecated
        public MemoryMetaData​(Object[][] columnHeaders,
                              Object[][] rowHeaders)
        Deprecated.
      • MemoryMetaData

        @Deprecated
        public MemoryMetaData​(List columnHeadersList)
        Deprecated.
    • Method Detail

      • setColumnTypes

        public void setColumnTypes​(String[] columnTypes)
      • getColumnTypes

        public String[] getColumnTypes()
      • getColumnHeaders

        public Object[][] getColumnHeaders()
        Specified by:
        getColumnHeaders in interface IPentahoMetaData
        Specified by:
        getColumnHeaders in class AbstractPentahoMetaData
        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 Object[][] getRowHeaders()
        Specified by:
        getRowHeaders in interface IMultiDimensionalMetaData
        Specified by:
        getRowHeaders in interface IPentahoMetaData
        Specified by:
        getRowHeaders in class AbstractPentahoMetaData
        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
      • setRowHeaders

        public void setRowHeaders​(Object[][] rowHeaders)
      • setFlattenedColumnNames

        public void setFlattenedColumnNames​(String[] columnNames)
      • setRowHeaderNames

        public void setRowHeaderNames​(String[] rowHeaderNames)
      • setColumnNameFormat

        public void setColumnNameFormat​(String formatStr)
        Description copied from interface: IMultiDimensionalMetaData
        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
        Specified by:
        setColumnNameFormat in interface IMultiDimensionalMetaData
      • getColumnNameFormat

        public String getColumnNameFormat()
      • generateColumnNames

        public void generateColumnNames()