Class TransformClassBase
java.lang.Object
org.pentaho.di.trans.steps.userdefinedjavaclass.TransformClassBase
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected UserDefinedJavaClassData
protected boolean
protected UserDefinedJavaClassMeta
protected UserDefinedJavaClass
protected boolean
-
Constructor Summary
ConstructorDescriptionTransformClassBase
(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResultFile
(org.pentaho.di.core.ResultFile resultFile) void
addRowListener
(RowListener rowListener) void
addStepListener
(StepListener stepListener) boolean
checkFeedback
(long lines) void
cleanup()
Object[]
createOutputRow
(Object[] inputRow, int outputRowSize) long
long
void
dispose
(StepMetaInterface smi, StepDataInterface sdi) org.pentaho.di.core.RowSet
findInfoRowSet
(String tag) org.pentaho.di.core.RowSet
findInputRowSet
(String sourceStep) org.pentaho.di.core.RowSet
findInputRowSet
(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSet
findOutputRowSet
(String targetStep) org.pentaho.di.core.RowSet
findOutputRowSet
(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSet
findTargetRowSet
(String tag) get
(TransformClassBase.Fields type, String name) int
int
getCopy()
org.pentaho.di.core.row.RowMetaInterface
long
static void
getFields
(boolean clearResultFields, org.pentaho.di.core.row.RowMetaInterface row, String originStepname, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, List<?> fields) static String[]
org.pentaho.di.core.row.RowMetaInterface
List<org.pentaho.di.core.RowSet>
long
long
long
long
long
long
long
List<org.pentaho.di.core.RowSet>
getParameter
(String tag) long
int
Object[]
getRow()
Object[]
getRowFrom
(org.pentaho.di.core.RowSet rowSet) long
int
static StepIOMetaInterface
getTrans()
int
int
getVariable
(String variableName) getVariable
(String variableName, String defaultValue) long
long
long
long
long
long
long
boolean
init
(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) void
boolean
boolean
boolean
boolean
boolean
boolean
void
void
void
void
void
void
logMinimal
(String s) void
void
void
void
markStop()
void
void
boolean
abstract boolean
processRow
(StepMetaInterface smi, StepDataInterface sdi) void
putError
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) void
void
putRowTo
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) void
removeRowListener
(RowListener rowListener) int
int
void
safeModeChecking
(org.pentaho.di.core.row.RowMetaInterface row) void
setErrors
(long errors) void
setInputRowMeta
(org.pentaho.di.core.row.RowMetaInterface rowMeta) void
setInputRowSets
(List<org.pentaho.di.core.RowSet> inputRowSets) void
setLinesInput
(long newLinesInputValue) void
setLinesOutput
(long newLinesOutputValue) void
setLinesRead
(long newLinesReadValue) void
setLinesRejected
(long linesRejected) void
setLinesSkipped
(long newLinesSkippedValue) void
setLinesUpdated
(long newLinesUpdatedValue) void
setLinesWritten
(long newLinesWrittenValue) void
void
setOutputRowSets
(List<org.pentaho.di.core.RowSet> outputRowSets) void
setStepListeners
(List<StepListener> stepListeners) void
setVariable
(String variableName, String variableValue) void
stopAll()
void
stopRunning
(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) toString()
-
Field Details
-
first
protected boolean first -
updateRowMeta
protected boolean updateRowMeta -
parent
-
meta
-
data
-
-
Constructor Details
-
TransformClassBase
public TransformClassBase(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
-
Method Details
-
addResultFile
public void addResultFile(org.pentaho.di.core.ResultFile resultFile) -
addRowListener
-
addStepListener
-
checkFeedback
public boolean checkFeedback(long lines) -
cleanup
public void cleanup() -
decrementLinesRead
public long decrementLinesRead() -
decrementLinesWritten
public long decrementLinesWritten() -
dispose
-
findInputRowSet
public org.pentaho.di.core.RowSet findInputRowSet(String sourceStep) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
findInputRowSet
-
findOutputRowSet
public org.pentaho.di.core.RowSet findOutputRowSet(String targetStep) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
findOutputRowSet
-
getClusterSize
public int getClusterSize() -
getCopy
public int getCopy() -
getErrorRowMeta
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMeta() -
getErrors
public long getErrors() -
getInputRowMeta
public org.pentaho.di.core.row.RowMetaInterface getInputRowMeta() -
getInputRowSets
-
getLinesInput
public long getLinesInput() -
getLinesOutput
public long getLinesOutput() -
getLinesRead
public long getLinesRead() -
getLinesRejected
public long getLinesRejected() -
getLinesSkipped
public long getLinesSkipped() -
getLinesUpdated
public long getLinesUpdated() -
getLinesWritten
public long getLinesWritten() -
getOutputRowSets
-
getPartitionID
-
getPartitionTargets
-
getProcessed
public long getProcessed() -
getRepartitioning
public int getRepartitioning() -
getResultFiles
-
getRow
- Throws:
org.pentaho.di.core.exception.KettleException
-
getRowFrom
public Object[] getRowFrom(org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
getRowListeners
-
getRuntime
public long getRuntime() -
getSlaveNr
public int getSlaveNr() -
getSocketRepository
-
getStatus
-
getStatusDescription
-
getStepDataInterface
-
getStepID
-
getStepListeners
-
getStepMeta
-
getStepname
-
getTrans
-
getTransMeta
-
getTypeId
-
getUniqueStepCountAcrossSlaves
public int getUniqueStepCountAcrossSlaves() -
getUniqueStepNrAcrossSlaves
public int getUniqueStepNrAcrossSlaves() -
getVariable
-
getVariable
-
incrementLinesInput
public long incrementLinesInput() -
incrementLinesOutput
public long incrementLinesOutput() -
incrementLinesRead
public long incrementLinesRead() -
incrementLinesRejected
public long incrementLinesRejected() -
incrementLinesSkipped
public long incrementLinesSkipped() -
incrementLinesUpdated
public long incrementLinesUpdated() -
incrementLinesWritten
public long incrementLinesWritten() -
init
-
initBeforeStart
public void initBeforeStart() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
isDistributed
public boolean isDistributed() -
isInitialising
public boolean isInitialising() -
isPartitioned
public boolean isPartitioned() -
isSafeModeEnabled
public boolean isSafeModeEnabled() -
isStopped
public boolean isStopped() -
isUsingThreadPriorityManagment
public boolean isUsingThreadPriorityManagment() -
logBasic
-
logDebug
-
logDetailed
-
logError
-
logError
-
logMinimal
-
logRowlevel
-
logSummary
public void logSummary() -
markStart
public void markStart() -
markStop
public void markStop() -
openRemoteInputStepSocketsOnce
public void openRemoteInputStepSocketsOnce() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
openRemoteOutputStepSocketsOnce
public void openRemoteOutputStepSocketsOnce() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
outputIsDone
public boolean outputIsDone() -
processRow
public abstract boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
putError
public void putError(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
putRow
public void putRow(org.pentaho.di.core.row.RowMetaInterface row, Object[] data) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
putRowTo
public void putRowTo(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
removeRowListener
-
rowsetInputSize
public int rowsetInputSize() -
rowsetOutputSize
public int rowsetOutputSize() -
safeModeChecking
public void safeModeChecking(org.pentaho.di.core.row.RowMetaInterface row) throws org.pentaho.di.core.exception.KettleRowException - Throws:
org.pentaho.di.core.exception.KettleRowException
-
setErrors
public void setErrors(long errors) -
setInputRowMeta
public void setInputRowMeta(org.pentaho.di.core.row.RowMetaInterface rowMeta) -
setInputRowSets
-
setLinesInput
public void setLinesInput(long newLinesInputValue) -
setLinesOutput
public void setLinesOutput(long newLinesOutputValue) -
setLinesRead
public void setLinesRead(long newLinesReadValue) -
setLinesRejected
public void setLinesRejected(long linesRejected) -
setLinesSkipped
public void setLinesSkipped(long newLinesSkippedValue) -
setLinesUpdated
public void setLinesUpdated(long newLinesUpdatedValue) -
setLinesWritten
public void setLinesWritten(long newLinesWrittenValue) -
setOutputDone
public void setOutputDone() -
setOutputRowSets
-
setStepListeners
-
setVariable
-
stopAll
public void stopAll() -
stopRunning
public void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
toString
-
getInfoSteps
-
getFields
public static void getFields(boolean clearResultFields, org.pentaho.di.core.row.RowMetaInterface row, String originStepname, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, List<?> fields) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
getStepIOMeta
-
getParameter
-
findInfoRowSet
public org.pentaho.di.core.RowSet findInfoRowSet(String tag) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
findTargetRowSet
public org.pentaho.di.core.RowSet findTargetRowSet(String tag) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
get
public FieldHelper get(TransformClassBase.Fields type, String name) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
createOutputRow
-