|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.trans.step.BaseStepMeta org.pentaho.di.trans.steps.selectvalues.SelectValuesMeta
public class SelectValuesMeta
Meta Data class for the Select Values Step. Created on 02-jun-2003
Field Summary |
---|
Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta |
---|
loggingObject, STEP_ATTRIBUTES_FILE |
Constructor Summary | |
---|---|
SelectValuesMeta()
|
Method Summary | |
---|---|
void |
allocate(int nrFields,
int nrRemove,
int nrMeta)
|
void |
check(List<CheckResultInterface> remarks,
TransMeta transMeta,
StepMeta stepMeta,
RowMetaInterface prev,
String[] input,
String[] output,
RowMetaInterface info)
Checks the settings of this step and puts the findings in a remarks List. |
Object |
clone()
Make an exact copy of this step, make sure to explicitly copy Collections etc. |
void |
getDeleteFields(RowMetaInterface inputRowMeta)
|
String[] |
getDeleteName()
|
List<FieldnameLineage> |
getFieldnameLineage()
We will describe in which way the field names change between input and output in this step. |
void |
getFields(RowMetaInterface inputRowMeta,
String name,
RowMetaInterface[] info,
StepMeta nextStep,
VariableSpace space)
Get the fields that are emitted by this step |
SelectMetadataChange[] |
getMeta()
|
void |
getMetadataFields(RowMetaInterface inputRowMeta,
String name)
|
void |
getSelectFields(RowMetaInterface inputRowMeta,
String name)
|
int[] |
getSelectLength()
|
String[] |
getSelectName()
|
int[] |
getSelectPrecision()
|
String[] |
getSelectRename()
|
StepInterface |
getStep(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int cnr,
TransMeta transMeta,
Trans trans)
Get the executing step, needed by Trans to launch a step. |
StepDataInterface |
getStepData()
Get a new instance of the appropriate data class. |
List<StepInjectionMetaEntry> |
getStepInjectionMetadataEntries()
Describe the metadata attributes that can be injected into this step metadata object. |
StepMetaInjectionInterface |
getStepMetaInjectionInterface()
|
String |
getXML()
Produces the XML string that describes this step's information. |
void |
injectStepMetadataEntries(List<StepInjectionMetaEntry> metadata)
|
boolean |
isSelectingAndSortingUnspecifiedFields()
|
void |
loadXML(Node stepnode,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
Load the values for this step from an XML Node |
void |
readRep(Repository rep,
ObjectId id_step,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
Read the steps information from a Kettle repository |
void |
saveRep(Repository rep,
ObjectId id_transformation,
ObjectId id_step)
Save the steps data into a Kettle repository |
void |
setDefault()
Set default values |
void |
setDeleteName(String[] deleteName)
|
void |
setMeta(SelectMetadataChange[] meta)
|
void |
setSelectingAndSortingUnspecifiedFields(boolean selectingAndSortingUnspecifiedFields)
|
void |
setSelectLength(int[] selectLength)
|
void |
setSelectName(String[] selectName)
|
void |
setSelectPrecision(int[] selectPrecision)
|
void |
setSelectRename(String[] selectRename)
|
boolean |
supportsErrorHandling()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectValuesMeta()
Method Detail |
---|
public String[] getDeleteName()
public void setDeleteName(String[] deleteName)
deleteName
- The deleteName to set.public int[] getSelectLength()
public void setSelectLength(int[] selectLength)
selectLength
- The selectLength to set.public String[] getSelectName()
public void setSelectName(String[] selectName)
selectName
- The selectName to set.public int[] getSelectPrecision()
public void setSelectPrecision(int[] selectPrecision)
selectPrecision
- The selectPrecision to set.public String[] getSelectRename()
public void setSelectRename(String[] selectRename)
selectRename
- The selectRename to set.public void loadXML(Node stepnode, List<DatabaseMeta> databases, Map<String,Counter> counters) throws KettleXMLException
StepMetaInterface
loadXML
in interface StepMetaInterface
stepnode
- the Node to get the info fromdatabases
- The available list of databases to reference tocounters
- Counters to reference.
KettleXMLException
- When an unexpected XML error occurred. (malformed etc.)public void allocate(int nrFields, int nrRemove, int nrMeta)
public Object clone()
StepMetaInterface
clone
in interface StepMetaInterface
clone
in class BaseStepMeta
public void setDefault()
StepMetaInterface
setDefault
in interface StepMetaInterface
public void getSelectFields(RowMetaInterface inputRowMeta, String name) throws KettleStepException
KettleStepException
public void getDeleteFields(RowMetaInterface inputRowMeta) throws KettleStepException
KettleStepException
public void getMetadataFields(RowMetaInterface inputRowMeta, String name)
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException
StepMetaInterface
getFields
in interface StepMetaInterface
getFields
in class BaseStepMeta
inputRowMeta
- The fields that are entering the step. These are changed to reflect the output metadata.name
- The name of the step to be used as origininfo
- The input rows metadata that enters the step through the specified channels in the same order as in method getInfoSteps(). The step metadata can then choose what to do with it: ignore it or not.
Interesting is also that in case of database lookups, the layout of the target database table is put in info[0]nextStep
- if this is a non-null value, it's the next step in the transformation. The one who's asking, the step where the data is targetted towards.space
- TODO
KettleStepException
- when an error occurred searching for the fields.public String getXML()
BaseStepMeta
getXML
in interface StepMetaInterface
getXML
in class BaseStepMeta
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String,Counter> counters) throws KettleException
StepMetaInterface
readRep
in interface StepMetaInterface
rep
- The repository to read fromid_step
- The step IDdatabases
- The databases to referencecounters
- The counters to reference
KettleException
- When an unexpected error occurred (database, network, etc)public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
StepMetaInterface
saveRep
in interface StepMetaInterface
rep
- The Kettle repository to save toid_transformation
- The transformation IDid_step
- The step ID
KettleException
- When an unexpected error occurred (database, network, etc)public void check(List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info)
StepMetaInterface
check
in interface StepMetaInterface
remarks
- The list to put the remarks in @see org.pentaho.di.core.CheckResultstepMeta
- The stepMeta to help checkingprev
- The fields coming from the previous stepinput
- The input step namesoutput
- The output step namesinfo
- The fields that are used as information by the steppublic StepInterface getStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans)
StepMetaInterface
getStep
in interface StepMetaInterface
stepMeta
- The step infostepDataInterface
- the step data interface linked to this step. Here the step can store temporary data, database connections, etc.cnr
- The copy nr to gettransMeta
- The transformation infotrans
- The launching transformationpublic StepDataInterface getStepData()
StepMetaInterface
getStepData
in interface StepMetaInterface
public boolean isSelectingAndSortingUnspecifiedFields()
public void setSelectingAndSortingUnspecifiedFields(boolean selectingAndSortingUnspecifiedFields)
selectingAndSortingUnspecifiedFields
- the selectingAndSortingUnspecifiedFields to setpublic SelectMetadataChange[] getMeta()
public void setMeta(SelectMetadataChange[] meta)
meta
- the meta to setpublic boolean supportsErrorHandling()
supportsErrorHandling
in interface StepMetaInterface
supportsErrorHandling
in class BaseStepMeta
public List<FieldnameLineage> getFieldnameLineage()
public StepMetaInjectionInterface getStepMetaInjectionInterface()
getStepMetaInjectionInterface
in interface StepMetaInterface
getStepMetaInjectionInterface
in class BaseStepMeta
public List<StepInjectionMetaEntry> getStepInjectionMetadataEntries()
getStepInjectionMetadataEntries
in interface StepMetaInjectionInterface
public void injectStepMetadataEntries(List<StepInjectionMetaEntry> metadata)
injectStepMetadataEntries
in interface StepMetaInjectionInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |