Modifier and Type | Field and Description |
---|---|
static int |
FILE_TYPE_ERROR |
static int |
FILE_TYPE_ERRORLINE |
static int |
FILE_TYPE_GENERAL |
static int |
FILE_TYPE_LOG |
static int |
FILE_TYPE_WARNING |
static String[] |
fileTypeCode |
static String[] |
fileTypeDesc |
Constructor and Description |
---|
ResultFile(int type,
org.apache.commons.vfs2.FileObject file,
String originParent,
String origin)
Construct a new result file
|
ResultFile(Node node) |
Modifier and Type | Method and Description |
---|---|
protected ResultFile |
clone() |
static String[] |
getAllTypeDesc() |
String |
getComment() |
org.apache.commons.vfs2.FileObject |
getFile() |
String |
getOrigin() |
String |
getOriginParent() |
RowMetaAndData |
getRow() |
Date |
getTimestamp() |
int |
getType() |
static int |
getType(String typeString)
Search for the result file type, looking in both the descriptions (i18n depending) and the codes
|
String |
getTypeCode() |
static String |
getTypeCode(int fileType) |
String |
getTypeDesc() |
static String |
getTypeDesc(int fileType) |
String |
getXML() |
void |
setComment(String comment) |
void |
setFile(org.apache.commons.vfs2.FileObject file) |
void |
setOrigin(String origin) |
void |
setOriginParent(String originParent) |
void |
setTimestamp(Date timestamp) |
void |
setType(int type) |
String |
toString() |
public static final int FILE_TYPE_GENERAL
public static final int FILE_TYPE_LOG
public static final int FILE_TYPE_ERRORLINE
public static final int FILE_TYPE_ERROR
public static final int FILE_TYPE_WARNING
public static final String[] fileTypeCode
public static final String[] fileTypeDesc
public ResultFile(int type, org.apache.commons.vfs2.FileObject file, String originParent, String origin)
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 filepublic ResultFile(Node node) throws KettleFileException
KettleFileException
protected ResultFile clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getComment()
public void setComment(String comment)
comment
- The comment to set.public org.apache.commons.vfs2.FileObject getFile()
public void setFile(org.apache.commons.vfs2.FileObject file)
file
- The file to set.public String getOrigin()
public void setOrigin(String origin)
origin
- The origin to set : the step or job entry that generated this result filepublic String getOriginParent()
public void setOriginParent(String originParent)
originParent
- The originParent to set : the transformation or job that generated this result filepublic int getType()
public void setType(int type)
type
- The type to set.public String getTypeDesc()
public String getTypeCode()
public static final int getType(String typeString)
typeString
- the type string to search forpublic static final String getTypeCode(int fileType)
fileType
- the result file typepublic static final String getTypeDesc(int fileType)
fileType
- the result file typepublic static final String[] getAllTypeDesc()
public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp
- The timestamp to set.public RowMetaAndData getRow()
public String getXML()
Copyright © 2019 Hitachi Vantara. All rights reserved.