Class TransformClassBase
java.lang.Object
org.pentaho.di.trans.steps.userdefinedjavaclass.TransformClassBase
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UserDefinedJavaClassDataprotected booleanprotected UserDefinedJavaClassMetaprotected UserDefinedJavaClassprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionTransformClassBase(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResultFile(org.pentaho.di.core.ResultFile resultFile) voidaddRowListener(RowListener rowListener) voidaddStepListener(StepListener stepListener) booleancheckFeedback(long lines) voidcleanup()Object[]createOutputRow(Object[] inputRow, int outputRowSize) longlongvoiddispose(StepMetaInterface smi, StepDataInterface sdi) org.pentaho.di.core.RowSetfindInfoRowSet(String tag) org.pentaho.di.core.RowSetfindInputRowSet(String sourceStep) org.pentaho.di.core.RowSetfindInputRowSet(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSetfindOutputRowSet(String targetStep) org.pentaho.di.core.RowSetfindOutputRowSet(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSetfindTargetRowSet(String tag) get(TransformClassBase.Fields type, String name) intintgetCopy()org.pentaho.di.core.row.RowMetaInterfacelongstatic voidgetFields(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.RowMetaInterfaceList<org.pentaho.di.core.RowSet>longlonglonglonglonglonglongList<org.pentaho.di.core.RowSet>getParameter(String tag) longintObject[]getRow()Object[]getRowFrom(org.pentaho.di.core.RowSet rowSet) longintstatic StepIOMetaInterfacegetTrans()intintgetVariable(String variableName) getVariable(String variableName, String defaultValue) longlonglonglonglonglonglongbooleaninit(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) voidbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidvoidvoidvoidlogMinimal(String s) voidvoidvoidvoidmarkStop()voidvoidbooleanabstract booleanprocessRow(StepMetaInterface smi, StepDataInterface sdi) voidputError(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) voidvoidputRowTo(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) voidremoveRowListener(RowListener rowListener) intintvoidsafeModeChecking(org.pentaho.di.core.row.RowMetaInterface row) voidsetErrors(long errors) voidsetInputRowMeta(org.pentaho.di.core.row.RowMetaInterface rowMeta) voidsetInputRowSets(List<org.pentaho.di.core.RowSet> inputRowSets) voidsetLinesInput(long newLinesInputValue) voidsetLinesOutput(long newLinesOutputValue) voidsetLinesRead(long newLinesReadValue) voidsetLinesRejected(long linesRejected) voidsetLinesSkipped(long newLinesSkippedValue) voidsetLinesUpdated(long newLinesUpdatedValue) voidsetLinesWritten(long newLinesWrittenValue) voidvoidsetOutputRowSets(List<org.pentaho.di.core.RowSet> outputRowSets) voidsetStepListeners(List<StepListener> stepListeners) voidsetVariable(String variableName, String variableValue) voidstopAll()voidstopRunning(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
-