Package org.pentaho.di.core
Class ResultFile
- java.lang.Object
-
- org.pentaho.di.core.ResultFile
-
-
Field Summary
Fields Modifier and Type Field Description static intFILE_TYPE_ERRORstatic intFILE_TYPE_ERRORLINEstatic intFILE_TYPE_GENERALstatic intFILE_TYPE_LOGstatic intFILE_TYPE_WARNINGstatic String[]fileTypeCodestatic String[]fileTypeDesc
-
Constructor Summary
Constructors Constructor Description ResultFile(int type, org.apache.commons.vfs2.FileObject file, String originParent, String origin)Construct a new result fileResultFile(Node node)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResultFileclone()static String[]getAllTypeDesc()StringgetComment()org.apache.commons.vfs2.FileObjectgetFile()StringgetOrigin()StringgetOriginParent()RowMetaAndDatagetRow()DategetTimestamp()intgetType()static intgetType(String typeString)Search for the result file type, looking in both the descriptions (i18n depending) and the codesStringgetTypeCode()static StringgetTypeCode(int fileType)StringgetTypeDesc()static StringgetTypeDesc(int fileType)StringgetXML()voidsetComment(String comment)voidsetFile(org.apache.commons.vfs2.FileObject file)voidsetOrigin(String origin)voidsetOriginParent(String originParent)voidsetTimestamp(Date timestamp)voidsetType(int type)StringtoString()
-
-
-
Field Detail
-
FILE_TYPE_GENERAL
public static final int FILE_TYPE_GENERAL
- See Also:
- Constant Field Values
-
FILE_TYPE_LOG
public static final int FILE_TYPE_LOG
- See Also:
- Constant Field Values
-
FILE_TYPE_ERRORLINE
public static final int FILE_TYPE_ERRORLINE
- See Also:
- Constant Field Values
-
FILE_TYPE_ERROR
public static final int FILE_TYPE_ERROR
- See Also:
- Constant Field Values
-
FILE_TYPE_WARNING
public static final int FILE_TYPE_WARNING
- See Also:
- Constant Field Values
-
fileTypeCode
public static final String[] fileTypeCode
-
fileTypeDesc
public static final String[] fileTypeDesc
-
-
Constructor Detail
-
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
public ResultFile(Node node) throws KettleFileException
- Throws:
KettleFileException
-
-
Method Detail
-
clone
protected ResultFile clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getComment
public String getComment()
- Returns:
- Returns the comment.
-
setComment
public void setComment(String comment)
- 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
public String getOrigin()
- Returns:
- Returns the origin : the step or job entry that generated this result file
-
setOrigin
public void setOrigin(String origin)
- Parameters:
origin- The origin to set : the step or job entry that generated this result file
-
getOriginParent
public String getOriginParent()
- Returns:
- Returns the originParent : the transformation or job that generated this result file
-
setOriginParent
public void setOriginParent(String originParent)
- 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
public String getTypeDesc()
- Returns:
- The description of this result files type.
-
getTypeCode
public String getTypeCode()
-
getType
public static final int getType(String typeString)
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
public static final String getTypeCode(int fileType)
- Parameters:
fileType- the result file type- Returns:
- the result file type code
-
getTypeDesc
public static final String getTypeDesc(int fileType)
- Parameters:
fileType- the result file type- Returns:
- the result file type description
-
getAllTypeDesc
public static final String[] getAllTypeDesc()
-
getTimestamp
public Date getTimestamp()
- Returns:
- Returns the timestamp.
-
setTimestamp
public void setTimestamp(Date timestamp)
- Parameters:
timestamp- The timestamp to set.
-
getRow
public RowMetaAndData getRow()
- Returns:
- an output Row for this Result File object.
-
getXML
public String getXML()
-
-