Modifier and Type | Field and Description |
---|---|
static int |
DATE |
static int |
NOMINAL |
static int |
NUMERIC |
static int |
STRING |
static String |
XML_TAG |
Constructor and Description |
---|
ArffMeta(Node arffNode)
Construct from an XML node
|
ArffMeta(org.pentaho.di.repository.Repository rep,
org.pentaho.di.repository.ObjectId id_step,
int nr)
Construct using data stored in repository
|
ArffMeta(String fieldName,
int kettleType,
int arffType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Make a copy
|
int |
getArffType()
Get the ARFF data type
|
String |
getDateFormat() |
String |
getFieldName()
Get the name of this field
|
int |
getKettleType()
Get the Kettle data type (as defined in ValueMetaInterface)
|
String |
getNominalVals()
Get a comma-separated list of legal values for a nominal attribute
|
String |
getXML()
Get the XML representation of this field
|
void |
saveRep(org.pentaho.di.repository.Repository rep,
org.pentaho.di.repository.ObjectId id_transformation,
org.pentaho.di.repository.ObjectId id_step,
int nr)
Save this ArffMeta to a repository
|
void |
setDateFormat(String dateFormat) |
void |
setNominalVals(String vals)
Set a comma-separated list of legal values for a nominal attribute
|
static List<String> |
stringToVals(String vals) |
public static final int NUMERIC
public static final int NOMINAL
public static final int DATE
public static final int STRING
public static final String XML_TAG
public ArffMeta(String fieldName, int kettleType, int arffType)
fieldName
- the name of this fieldkettleType
- the Kettle data typearffType
- the ARFF data typepublic ArffMeta(org.pentaho.di.repository.Repository rep, org.pentaho.di.repository.ObjectId id_step, int nr) throws org.pentaho.di.core.exception.KettleException
rep
- the repositoryid_step
- the id of the stepnr
- the step numberorg.pentaho.di.core.exception.KettleException
- if an error occurspublic ArffMeta(Node arffNode)
uniNode
- a XML nodepublic String getFieldName()
public int getKettleType()
public int getArffType()
public void setDateFormat(String dateFormat)
public String getDateFormat()
public void setNominalVals(String vals)
vals
- the legal valuespublic String getNominalVals()
public Object clone()
public String getXML()
String
valuepublic void saveRep(org.pentaho.di.repository.Repository rep, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step, int nr) throws org.pentaho.di.core.exception.KettleException
rep
- the repository to save toid_transformation
- the transformation idid_step
- the step idnr
- the step numberorg.pentaho.di.core.exception.KettleException
- if an error occursCopyright © 2019 Hitachi Vantara. All rights reserved.