Interface DatamartContext.Table

  • All Known Implementing Classes:
    Table
    Enclosing interface:
    DatamartContext

    public static interface DatamartContext.Table
    • Method Detail

      • getColumn

        DatamartContext.Column getColumn​(String columnName)
        Convenience method for retrieving a column by its name.

        Example:

           def ctx = api.getDatamartContext()
           def dm = ctx.getDatamart("Transactions_DM")
           def ccDim = dm.getColumn("CC")
           def cc = ctx.dimFilterEntry("CC", ccDim)
           if (cc!=null) return cc.value
                 
        Parameters:
        columnName - the name of the column to retrieve
        Returns:
        the column with the given name. Returns null if no such column is found.
      • getColumnByLabel

        DatamartContext.Column getColumnByLabel​(String columnLabel)
        Convenience method for retrieving a column by its label.
        Parameters:
        columnLabel - the label of the column to retrieve
        Returns:
        the column with the given label. Returns null if no such column is found.
      • getSourceName

        String getSourceName()
        The underlying FC's source name.

        It can be useful when the source name is required by other APIs.

        Returns:
        The source name