|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.trans.step.BaseStep org.pentaho.di.trans.steps.orabulkloader.OraBulkLoader
public class OraBulkLoader
Performs a bulk load to an oracle table.
Field Summary | |
---|---|
static int |
EX_SUCC
|
static int |
EX_WARN
|
Fields inherited from class org.pentaho.di.trans.step.BaseStep |
---|
first, linesInput, linesOutput, linesRead, linesRejected, linesSkipped, linesUpdated, linesWritten, terminator, terminator_rows |
Constructor Summary | |
---|---|
OraBulkLoader(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans)
|
Method Summary | |
---|---|
void |
checkExitVal(int exitVal)
|
String |
createCommandLine(OraBulkLoaderMeta meta,
boolean password)
Create the command line for an sqlldr process depending on the meta information supplied. |
void |
createControlFile(String filename,
Object[] row,
OraBulkLoaderMeta meta)
Create a control file. |
void |
dispose(StepMetaInterface smi,
StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc. |
boolean |
execute(OraBulkLoaderMeta meta,
boolean wait)
|
String |
getControlFileContents(OraBulkLoaderMeta meta,
RowMetaInterface rm,
Object[] r)
Get the contents of the control file as specified in the meta object |
boolean |
init(StepMetaInterface smi,
StepDataInterface sdi)
Initialize and do work where other steps need to wait for... |
boolean |
processRow(StepMetaInterface smi,
StepDataInterface sdi)
Perform the equivalent of processing one row. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pentaho.di.core.variables.VariableSpace |
---|
copyVariablesFrom, environmentSubstitute, environmentSubstitute, getBooleanValueOfVariable, getParentVariableSpace, getVariable, getVariable, initializeVariablesFrom, injectVariables, listVariables, setParentVariableSpace, setVariable, shareVariablesWith |
Field Detail |
---|
public static final int EX_SUCC
public static final int EX_WARN
Constructor Detail |
---|
public OraBulkLoader(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans)
Method Detail |
---|
public String getControlFileContents(OraBulkLoaderMeta meta, RowMetaInterface rm, Object[] r) throws KettleException
meta
- the meta object to model the control file after
KettleException
public void createControlFile(String filename, Object[] row, OraBulkLoaderMeta meta) throws KettleException
filename
- meta
-
KettleException
public String createCommandLine(OraBulkLoaderMeta meta, boolean password) throws KettleException
meta
- The meta data to create the command line frompassword
- Use the real password or not
KettleException
- Upon any exceptionpublic void checkExitVal(int exitVal) throws KettleException
KettleException
public boolean execute(OraBulkLoaderMeta meta, boolean wait) throws KettleException
KettleException
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
StepInterface
processRow
in interface StepInterface
processRow
in class BaseStep
smi
- The steps metadata to work withsdi
- The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)
KettleException
public boolean init(StepMetaInterface smi, StepDataInterface sdi)
StepInterface
init
in interface StepInterface
init
in class BaseStep
smi
- The metadata to work withsdi
- The data to initializepublic void dispose(StepMetaInterface smi, StepDataInterface sdi)
StepInterface
dispose
in interface StepInterface
dispose
in class BaseStep
smi
- The metadata to work withsdi
- The data to dispose of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |