Class TransformClassBase
- java.lang.Object
-
- org.pentaho.di.trans.steps.userdefinedjavaclass.TransformClassBase
-
public abstract class TransformClassBase extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransformClassBase.Fields
-
Field Summary
Fields Modifier and Type Field Description protected UserDefinedJavaClassData
data
protected boolean
first
protected UserDefinedJavaClassMeta
meta
protected UserDefinedJavaClass
parent
protected boolean
updateRowMeta
-
Constructor Summary
Constructors Constructor Description TransformClassBase(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
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
decrementLinesRead()
long
decrementLinesWritten()
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)
FieldHelper
get(TransformClassBase.Fields type, String name)
int
getClusterSize()
int
getCopy()
org.pentaho.di.core.row.RowMetaInterface
getErrorRowMeta()
long
getErrors()
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[]
getInfoSteps()
org.pentaho.di.core.row.RowMetaInterface
getInputRowMeta()
List<org.pentaho.di.core.RowSet>
getInputRowSets()
long
getLinesInput()
long
getLinesOutput()
long
getLinesRead()
long
getLinesRejected()
long
getLinesSkipped()
long
getLinesUpdated()
long
getLinesWritten()
List<org.pentaho.di.core.RowSet>
getOutputRowSets()
String
getParameter(String tag)
String
getPartitionID()
Map<String,org.pentaho.di.core.BlockingRowSet>
getPartitionTargets()
long
getProcessed()
int
getRepartitioning()
Map<String,org.pentaho.di.core.ResultFile>
getResultFiles()
Object[]
getRow()
Object[]
getRowFrom(org.pentaho.di.core.RowSet rowSet)
List<RowListener>
getRowListeners()
long
getRuntime()
int
getSlaveNr()
SocketRepository
getSocketRepository()
BaseStepData.StepExecutionStatus
getStatus()
String
getStatusDescription()
StepDataInterface
getStepDataInterface()
String
getStepID()
static StepIOMetaInterface
getStepIOMeta(UserDefinedJavaClassMeta meta)
List<StepListener>
getStepListeners()
StepMeta
getStepMeta()
String
getStepname()
Trans
getTrans()
TransMeta
getTransMeta()
String
getTypeId()
int
getUniqueStepCountAcrossSlaves()
int
getUniqueStepNrAcrossSlaves()
String
getVariable(String variableName)
String
getVariable(String variableName, String defaultValue)
long
incrementLinesInput()
long
incrementLinesOutput()
long
incrementLinesRead()
long
incrementLinesRejected()
long
incrementLinesSkipped()
long
incrementLinesUpdated()
long
incrementLinesWritten()
boolean
init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
void
initBeforeStart()
boolean
isDistributed()
boolean
isInitialising()
boolean
isPartitioned()
boolean
isSafeModeEnabled()
boolean
isStopped()
boolean
isUsingThreadPriorityManagment()
void
logBasic(String s)
void
logDebug(String s)
void
logDetailed(String s)
void
logError(String s)
void
logError(String s, Throwable e)
void
logMinimal(String s)
void
logRowlevel(String s)
void
logSummary()
void
markStart()
void
markStop()
void
openRemoteInputStepSocketsOnce()
void
openRemoteOutputStepSocketsOnce()
boolean
outputIsDone()
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
putRow(org.pentaho.di.core.row.RowMetaInterface row, Object[] data)
void
putRowTo(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet)
void
removeRowListener(RowListener rowListener)
int
rowsetInputSize()
int
rowsetOutputSize()
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
setOutputDone()
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)
String
toString()
-
-
-
Field Detail
-
first
protected boolean first
-
updateRowMeta
protected boolean updateRowMeta
-
parent
protected UserDefinedJavaClass parent
-
meta
protected UserDefinedJavaClassMeta meta
-
data
protected UserDefinedJavaClassData data
-
-
Constructor Detail
-
TransformClassBase
public TransformClassBase(UserDefinedJavaClass parent, UserDefinedJavaClassMeta meta, UserDefinedJavaClassData data) throws org.pentaho.di.core.exception.KettleStepException
- Throws:
org.pentaho.di.core.exception.KettleStepException
-
-
Method Detail
-
addResultFile
public void addResultFile(org.pentaho.di.core.ResultFile resultFile)
-
addRowListener
public void addRowListener(RowListener rowListener)
-
addStepListener
public void addStepListener(StepListener stepListener)
-
checkFeedback
public boolean checkFeedback(long lines)
-
cleanup
public void cleanup()
-
decrementLinesRead
public long decrementLinesRead()
-
decrementLinesWritten
public long decrementLinesWritten()
-
dispose
public void dispose(StepMetaInterface smi, StepDataInterface sdi)
-
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
public org.pentaho.di.core.RowSet findInputRowSet(String from, int fromcopy, String to, int tocopy)
-
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
public org.pentaho.di.core.RowSet findOutputRowSet(String from, int fromcopy, String to, int tocopy)
-
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
public List<org.pentaho.di.core.RowSet> 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
public List<org.pentaho.di.core.RowSet> getOutputRowSets()
-
getPartitionID
public String getPartitionID()
-
getProcessed
public long getProcessed()
-
getRepartitioning
public int getRepartitioning()
-
getRow
public Object[] getRow() throws org.pentaho.di.core.exception.KettleException
- 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
public List<RowListener> getRowListeners()
-
getRuntime
public long getRuntime()
-
getSlaveNr
public int getSlaveNr()
-
getSocketRepository
public SocketRepository getSocketRepository()
-
getStatus
public BaseStepData.StepExecutionStatus getStatus()
-
getStatusDescription
public String getStatusDescription()
-
getStepDataInterface
public StepDataInterface getStepDataInterface()
-
getStepID
public String getStepID()
-
getStepListeners
public List<StepListener> getStepListeners()
-
getStepMeta
public StepMeta getStepMeta()
-
getStepname
public String getStepname()
-
getTrans
public Trans getTrans()
-
getTransMeta
public TransMeta getTransMeta()
-
getTypeId
public String getTypeId()
-
getUniqueStepCountAcrossSlaves
public int getUniqueStepCountAcrossSlaves()
-
getUniqueStepNrAcrossSlaves
public int getUniqueStepNrAcrossSlaves()
-
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
public boolean init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
-
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
public void logBasic(String s)
-
logDebug
public void logDebug(String s)
-
logDetailed
public void logDetailed(String s)
-
logError
public void logError(String s)
-
logMinimal
public void logMinimal(String s)
-
logRowlevel
public void logRowlevel(String s)
-
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
public void removeRowListener(RowListener rowListener)
-
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
public void setInputRowSets(List<org.pentaho.di.core.RowSet> inputRowSets)
-
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
public void setOutputRowSets(List<org.pentaho.di.core.RowSet> outputRowSets)
-
setStepListeners
public void setStepListeners(List<StepListener> stepListeners)
-
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
-
getInfoSteps
public static String[] 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
public static StepIOMetaInterface getStepIOMeta(UserDefinedJavaClassMeta meta)
-
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
-
-