Class OraBulkLoader

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

    public class OraBulkLoader
    extends BaseStep
    implements StepInterface
    Performs a bulk load to an oracle table.
    Since:
    20-feb-2007
    Author:
    Sven Boden
    • Method Detail

      • getControlFileContents

        public String getControlFileContents​(OraBulkLoaderMeta meta,
                                             org.pentaho.di.core.row.RowMetaInterface rm,
                                             Object[] r)
                                      throws org.pentaho.di.core.exception.KettleException
        Get the contents of the control file as specified in the meta object
        Parameters:
        meta - the meta object to model the control file after
        Returns:
        a string containing the control file contents
        Throws:
        org.pentaho.di.core.exception.KettleException
      • createControlFile

        public void createControlFile​(String filename,
                                      Object[] row,
                                      OraBulkLoaderMeta meta)
                               throws org.pentaho.di.core.exception.KettleException
        Create a control file.
        Parameters:
        filename - path to control file
        meta - step meta
        Throws:
        org.pentaho.di.core.exception.KettleException
      • createCommandLine

        public String createCommandLine​(OraBulkLoaderMeta meta,
                                        boolean password)
                                 throws org.pentaho.di.core.exception.KettleException
        Create the command line for an sqlldr process depending on the meta information supplied.
        Parameters:
        meta - The meta data to create the command line from
        password - Use the real password or not
        Returns:
        The string to execute.
        Throws:
        org.pentaho.di.core.exception.KettleException - Upon any exception
      • checkExitVal

        public void checkExitVal​(int exitVal)
                          throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • execute

        public boolean execute​(OraBulkLoaderMeta meta,
                               boolean wait)
                        throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • 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 BaseStep
        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
      • verifyDatabaseConnection

        protected void verifyDatabaseConnection()
                                         throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException