|
||||||||||
| 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.reservoirsampling.ReservoirSamplingMeta
public class ReservoirSamplingMeta
Contains the meta data for the ReservoirSampling step.
| Field Summary | |
|---|---|
static String |
XML_TAG
|
| Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta |
|---|
loggingObject, STEP_ATTRIBUTES_FILE |
| Constructor Summary | |
|---|---|
ReservoirSamplingMeta()
Creates a new ReservoirMeta instance. |
|
| Method Summary | |
|---|---|
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 |
String |
getSampleSize()
Get the sample size to generate. |
String |
getSeed()
Get the random seed |
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 this step's configuration from a repository |
void |
saveRep(Repository rep,
ObjectId id_transformation,
ObjectId id_step)
Save this step's meta data to a repository |
void |
setDefault()
Set the defaults for this step. |
void |
setSampleSize(String sampleS)
Set the size of the sample to generate |
void |
setSeed(String seed)
Set the seed value for the random number generator |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_TAG
| Constructor Detail |
|---|
public ReservoirSamplingMeta()
ReservoirMeta instance.
| Method Detail |
|---|
public String getSampleSize()
public void setSampleSize(String sampleS)
sampleS - the size of the samplepublic String getSeed()
public void setSeed(String seed)
seed - the seed valuepublic 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 void setDefault()
setDefault in interface StepMetaInterfacepublic Object clone()
clone in interface StepMetaInterfaceclone in class BaseStepMeta
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 occurs
public void readRep(Repository rep,
ObjectId id_step,
List<DatabaseMeta> databases,
Map<String,Counter> counters)
throws KettleException
readRep in interface StepMetaInterfacerep - the repository to accessid_step - the id for this stepdatabases - The databases to referencecounters - The counters to reference
KettleException - if an error occurs
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 | |||||||||