org.pentaho.di.core
Class Result
java.lang.Object
org.pentaho.di.core.Result
- All Implemented Interfaces:
- Cloneable
public class Result
- extends Object
- implements Cloneable
Result describes the result of the execution of a Transformation or a Job.
Using this, the Result can be evaluated after execution.
- Since:
- 05-11-2003
- Author:
- Matt
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
XML_FILES_TAG
public static final String XML_FILES_TAG
- See Also:
- Constant Field Values
XML_FILE_TAG
public static final String XML_FILE_TAG
- See Also:
- Constant Field Values
XML_ROWS_TAG
public static final String XML_ROWS_TAG
- See Also:
- Constant Field Values
stopped
public boolean stopped
Result
public Result()
Result
public Result(int nr)
Result
public Result(Node node)
throws KettleException
- Throws:
KettleException
clone
public Result clone()
- Overrides:
clone
in class Object
getReadWriteThroughput
public String getReadWriteThroughput(int seconds)
toString
public String toString()
- Overrides:
toString
in class Object
getNrFilesRetrieved
public long getNrFilesRetrieved()
- Returns:
- Returns the number of files retrieved.
setNrFilesRetrieved
public void setNrFilesRetrieved(long filesRetrieved)
- Parameters:
filesRetrieved
- The number of files retrieved to set.
getEntryNr
public long getEntryNr()
- Returns:
- Returns the entryNr.
setEntryNr
public void setEntryNr(long entryNr)
- Parameters:
entryNr
- The entryNr to set.
getExitStatus
public int getExitStatus()
- Returns:
- Returns the exitStatus.
setExitStatus
public void setExitStatus(int exitStatus)
- Parameters:
exitStatus
- The exitStatus to set.
getNrErrors
public long getNrErrors()
- Returns:
- Returns the nrErrors.
setNrErrors
public void setNrErrors(long nrErrors)
- Parameters:
nrErrors
- The nrErrors to set.
getNrLinesInput
public long getNrLinesInput()
- Returns:
- Returns the nrLinesInput.
setNrLinesInput
public void setNrLinesInput(long nrLinesInput)
- Parameters:
nrLinesInput
- The nrLinesInput to set.
getNrLinesOutput
public long getNrLinesOutput()
- Returns:
- Returns the nrLinesOutput.
setNrLinesOutput
public void setNrLinesOutput(long nrLinesOutput)
- Parameters:
nrLinesOutput
- The nrLinesOutput to set.
getNrLinesRead
public long getNrLinesRead()
- Returns:
- Returns the nrLinesRead.
setNrLinesRead
public void setNrLinesRead(long nrLinesRead)
- Parameters:
nrLinesRead
- The nrLinesRead to set.
getNrLinesUpdated
public long getNrLinesUpdated()
- Returns:
- Returns the nrLinesUpdated.
setNrLinesUpdated
public void setNrLinesUpdated(long nrLinesUpdated)
- Parameters:
nrLinesUpdated
- The nrLinesUpdated to set.
getNrLinesWritten
public long getNrLinesWritten()
- Returns:
- Returns the nrLinesWritten.
setNrLinesWritten
public void setNrLinesWritten(long nrLinesWritten)
- Parameters:
nrLinesWritten
- The nrLinesWritten to set.
getNrLinesDeleted
public long getNrLinesDeleted()
- Returns:
- Returns the nrLinesDeleted.
setNrLinesDeleted
public void setNrLinesDeleted(long nrLinesDeleted)
- Parameters:
nrLinesDeleted
- The nrLinesDeleted to set.
getResult
public boolean getResult()
- Returns:
- Returns the result.
setResult
public void setResult(boolean result)
- Parameters:
result
- The result to set.
getRows
public List<RowMetaAndData> getRows()
- Returns:
- Returns the rows.
setRows
public void setRows(List<RowMetaAndData> rows)
- Parameters:
rows
- The rows to set.
isStopped
public boolean isStopped()
- Returns:
- Returns the stopped.
setStopped
public void setStopped(boolean stopped)
- Parameters:
stopped
- The stopped to set.
clear
public void clear()
- Clear the numbers in this result, set them all to 0
add
public void add(Result res)
- Add the NrOfLines from a different result to this result
- Parameters:
res
- The result to add
getXML
public String getXML()
throws IOException
- Returns:
- This Result object serialized as XML
- Throws:
IOException
getResultFiles
public Map<String,ResultFile> getResultFiles()
- Returns:
- Returns the result files. This is a Map with String as key and ResultFile as value.
getResultFilesList
public List<ResultFile> getResultFilesList()
- Returns:
- Returns the result files. This is a list of type ResultFile
setResultFiles
public void setResultFiles(Map<String,ResultFile> usedFiles)
- Parameters:
usedFiles
- The list of result files to set. This is a list of type ResultFile
getNrLinesRejected
public long getNrLinesRejected()
- Returns:
- the nrLinesRejected
setNrLinesRejected
public void setNrLinesRejected(long nrLinesRejected)
- Parameters:
nrLinesRejected
- the nrLinesRejected to set
getLogChannelId
public String getLogChannelId()
- Returns:
- the log channel id of the object that was executed (trans, job, job entry, etc);
setLogChannelId
public void setLogChannelId(String logChannelId)
- Parameters:
logChannelId
- the logChannelId to set
increaseLinesRead
public void increaseLinesRead(long incr)
increaseLinesWritten
public void increaseLinesWritten(long incr)
increaseLinesInput
public void increaseLinesInput(long incr)
increaseLinesOutput
public void increaseLinesOutput(long incr)
increaseLinesUpdated
public void increaseLinesUpdated(long incr)
increaseLinesDeleted
public void increaseLinesDeleted(long incr)
increaseLinesRejected
public void increaseLinesRejected(long incr)
increaseErrors
public void increaseErrors(long incr)
getLogText
public String getLogText()
- Returns:
- the logText
setLogText
public void setLogText(String logText)
- Parameters:
logText
- the logText to set