Package org.pentaho.di.core
Class ResultFile
java.lang.Object
org.pentaho.di.core.ResultFile
- All Implemented Interfaces:
Cloneable
This is a result file: a file as a result of the execution of a job entry, a transformation step, etc.
- Author:
- matt
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResultFile
(int type, org.apache.commons.vfs2.FileObject file, String originParent, String origin) Construct a new result fileResultFile
(Node node) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResultFile
clone()
static final String[]
org.apache.commons.vfs2.FileObject
getFile()
getRow()
int
getType()
static final int
Search for the result file type, looking in both the descriptions (i18n depending) and the codesstatic final String
getTypeCode
(int fileType) static final String
getTypeDesc
(int fileType) getXML()
void
setComment
(String comment) void
setFile
(org.apache.commons.vfs2.FileObject file) void
void
setOriginParent
(String originParent) void
setTimestamp
(Date timestamp) void
setType
(int type) toString()
-
Field Details
-
FILE_TYPE_GENERAL
public static final int FILE_TYPE_GENERAL- See Also:
-
FILE_TYPE_LOG
public static final int FILE_TYPE_LOG- See Also:
-
FILE_TYPE_ERRORLINE
public static final int FILE_TYPE_ERRORLINE- See Also:
-
FILE_TYPE_ERROR
public static final int FILE_TYPE_ERROR- See Also:
-
FILE_TYPE_WARNING
public static final int FILE_TYPE_WARNING- See Also:
-
fileTypeCode
-
fileTypeDesc
-
-
Constructor Details
-
ResultFile
public ResultFile(int type, org.apache.commons.vfs2.FileObject file, String originParent, String origin) Construct a new result file- Parameters:
type
- The type of file : FILE_TYPE_GENERAL, ...file
- The file to useoriginParent
- The transformation or job that has generated this result fileorigin
- The step or job entry that has generated this result file
-
ResultFile
- Throws:
KettleFileException
-
-
Method Details
-
toString
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getComment
- Returns:
- Returns the comment.
-
setComment
- Parameters:
comment
- The comment to set.
-
getFile
public org.apache.commons.vfs2.FileObject getFile()- Returns:
- Returns the file.
-
setFile
public void setFile(org.apache.commons.vfs2.FileObject file) - Parameters:
file
- The file to set.
-
getOrigin
- Returns:
- Returns the origin : the step or job entry that generated this result file
-
setOrigin
- Parameters:
origin
- The origin to set : the step or job entry that generated this result file
-
getOriginParent
- Returns:
- Returns the originParent : the transformation or job that generated this result file
-
setOriginParent
- Parameters:
originParent
- The originParent to set : the transformation or job that generated this result file
-
getType
public int getType()- Returns:
- Returns the type.
-
setType
public void setType(int type) - Parameters:
type
- The type to set.
-
getTypeDesc
- Returns:
- The description of this result files type.
-
getTypeCode
-
getType
Search for the result file type, looking in both the descriptions (i18n depending) and the codes- Parameters:
typeString
- the type string to search for- Returns:
- the result file type
-
getTypeCode
- Parameters:
fileType
- the result file type- Returns:
- the result file type code
-
getTypeDesc
- Parameters:
fileType
- the result file type- Returns:
- the result file type description
-
getAllTypeDesc
-
getTimestamp
- Returns:
- Returns the timestamp.
-
setTimestamp
- Parameters:
timestamp
- The timestamp to set.
-
getRow
- Returns:
- an output Row for this Result File object.
-
getXML
-