Class TableAgileMart

  • All Implemented Interfaces:
    org.pentaho.di.core.ExtensionDataInterface, HasLogChannelInterface, org.pentaho.di.core.logging.LoggingObjectInterface, org.pentaho.di.core.logging.LoggingObjectLifecycleInterface, TableManager, org.pentaho.di.core.variables.VariableSpace, StepInterface

    public class TableAgileMart
    extends TableOutput
    implements TableManager
    • Method Detail

      • adjustSchema

        public boolean adjustSchema()
        Description copied from interface: TableManager
        Adjust schema. This is used to change the schema when the input fields change.
        Specified by:
        adjustSchema in interface TableManager
        Returns:
        true if the operation succeeded
      • writeToTable

        protected Object[] writeToTable​(org.pentaho.di.core.row.RowMetaInterface rowMeta,
                                        Object[] r)
                                 throws org.pentaho.di.core.exception.KettleException
        Overrides:
        writeToTable in class TableOutput
        Throws:
        org.pentaho.di.core.exception.KettleException
      • flush

        public boolean flush()
        Description copied from interface: TableManager
        Flushes the current in-memory buffer to the storage system. This is called during cancel operations when the current set of data is still wanted.
        Specified by:
        flush in interface TableManager
        Returns:
        true if the operation succeeded
      • processRow

        public boolean processRow​(StepMetaInterface smi,
                                  StepDataInterface sdi)
                           throws org.pentaho.di.core.exception.KettleException
        Description copied from interface: StepInterface
        Perform the equivalent of processing one row. Typically this means reading a row from input (getRow()) and passing a row to output (putRow)).
        Specified by:
        processRow in interface StepInterface
        Overrides:
        processRow in class TableOutput
        Parameters:
        smi - The steps metadata to work with
        sdi - The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)
        Returns:
        false if no more rows can be processed or an error occurred.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • dropTable

        public boolean dropTable()
        Description copied from interface: TableManager
        Drops the current table. This is used during management operations.
        Specified by:
        dropTable in interface TableManager
        Returns:
        true if the operation succeeded
      • getMessage

        public String getMessage()
        Description copied from interface: TableManager
        Returns a human-readable message about any errors that have occurred. If any of the operations (dropTable, flush, truncateTable) fail, this method should return a nice, accurate message describing the problem that was encountered.
        Specified by:
        getMessage in interface TableManager
        Returns:
      • setRowLimit

        public void setRowLimit​(long rowLimit)
        Description copied from interface: TableManager
        Sets the row limit. This is used to limit the data loaded during a specific execution. This value might change every time the transformation is executed.
        Specified by:
        setRowLimit in interface TableManager
      • setTableName

        public void setTableName​(String tableName)
        Description copied from interface: TableManager
        Sets the table name. If the name of the database table is determined programatically this method can be used to set the table name.
        Specified by:
        setTableName in interface TableManager
      • truncateTable

        public boolean truncateTable()
        Description copied from interface: TableManager
        Truncates the current table. This is used during management operations.
        Specified by:
        truncateTable in interface TableManager
        Returns:
        true if the operation succeeded