|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.trans.step.BaseStepMeta
org.pentaho.di.trans.steps.univariatestats.UnivariateStatsMeta
public class UnivariateStatsMeta
Contains the meta-data for the UnivariateStats step: calculates predefined univariate statistics
| Field Summary |
|---|
| Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta |
|---|
loggingObject, STEP_ATTRIBUTES_FILE |
| Constructor Summary | |
|---|---|
UnivariateStatsMeta()
Creates a new UnivariateStatsMeta instance. |
|
| Method Summary | |
|---|---|
void |
allocate(int nrStats)
Allocate space for stats to compute |
void |
check(List<CheckResultInterface> remarks,
TransMeta transmeta,
StepMeta stepMeta,
RowMetaInterface prev,
String[] input,
String[] output,
RowMetaInterface info)
Check the settings of this step and put findings in a remarks list. |
Object |
clone()
Clone this step's meta data |
boolean |
equals(Object obj)
Check for equality |
void |
getFields(RowMetaInterface row,
String origin,
RowMetaInterface[] info,
StepMeta nextStep,
VariableSpace space)
Generates row meta data to represent the fields output by this step |
UnivariateStatsMetaFunction[] |
getInputFieldMetaFunctions()
Get the stats to be computed for the input fields |
int |
getNumFieldsToProcess()
Returns how many UnivariateStatsMetaFunctions are currently being used. |
StepInterface |
getStep(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int cnr,
TransMeta tr,
Trans trans)
Get the executing step, needed by Trans to launch a step. |
StepDataInterface |
getStepData()
Get a new instance of the appropriate data class. |
String |
getXML()
Return the XML describing this (configured) step |
void |
loadXML(Node stepnode,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
Loads the meta data for this (configured) step from XML. |
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 this step's meta data to a repository |
void |
setDefault()
Set the default state of the meta data? |
void |
setInputFieldMetaFunctions(UnivariateStatsMetaFunction[] mf)
Set the stats to be computed for the input fields |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnivariateStatsMeta()
UnivariateStatsMeta instance.
| Method Detail |
|---|
public UnivariateStatsMetaFunction[] getInputFieldMetaFunctions()
UnivariateStatsMetaFunction[] valuepublic int getNumFieldsToProcess()
public void setInputFieldMetaFunctions(UnivariateStatsMetaFunction[] mf)
mf - an array of UnivariateStatsMetaFunctionspublic void allocate(int nrStats)
nrStats - the number of UnivariateStatsMetaFunctions
to allocate
public void loadXML(Node stepnode,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
throws KettleXMLException
loadXML in interface StepMetaInterfacestepnode - the step to loaddatabases - The available list of databases to reference tocounters - Counters to reference.
KettleXMLException - if an error occurspublic String getXML()
getXML in interface StepMetaInterfacegetXML in class BaseStepMetaString containing the XMLpublic boolean equals(Object obj)
equals in class Objectobj - an Object to compare with
public Object clone()
clone in interface StepMetaInterfaceclone in class BaseStepMetapublic void setDefault()
setDefault in interface StepMetaInterface
public void readRep(Repository rep,
ObjectId id_step,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
throws KettleException
StepMetaInterface
readRep in interface StepMetaInterfacerep - 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
saveRep in interface StepMetaInterfacerep - the repository to save toid_transformation - transformation idid_step - step id
KettleException - if an error occurs
public void getFields(RowMetaInterface row,
String origin,
RowMetaInterface[] info,
StepMeta nextStep,
VariableSpace space)
throws KettleStepException
getFields in interface StepMetaInterfacegetFields in class BaseStepMetarow - the meta data for the output producedorigin - the name of the step to be used as the 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.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 - not sure what this is :-)
KettleStepException - if an error occurs
public void check(List<CheckResultInterface> remarks,
TransMeta transmeta,
StepMeta stepMeta,
RowMetaInterface prev,
String[] input,
String[] output,
RowMetaInterface info)
check in interface StepMetaInterfaceremarks - the list to put the remarks in.
see org.pentaho.di.core.CheckResulttransmeta - the transform meta datastepMeta - the step meta dataprev - the fields coming from a previous stepinput - the input step namesoutput - the output step namesinfo - the fields that are used as information by the step
public StepInterface getStep(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int cnr,
TransMeta tr,
Trans trans)
getStep in interface StepMetaInterfacestepMeta - the step infostepDataInterface - the step data interface linked
to this step. Here the step can store temporary data,
database connections, etc.cnr - the copy number to get.tr - the transformation info.trans - the launching transformation
StepInterface valuepublic StepDataInterface getStepData()
getStepData in interface StepMetaInterfaceStepDataInterface value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||