本文整理汇总了Java中org.pentaho.di.trans.steps.samplerows.SampleRowsMeta类的典型用法代码示例。如果您正苦于以下问题:Java SampleRowsMeta类的具体用法?Java SampleRowsMeta怎么用?Java SampleRowsMeta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SampleRowsMeta类属于org.pentaho.di.trans.steps.samplerows包,在下文中一共展示了SampleRowsMeta类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getData
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
/**
* Copy information from the meta-data input to the dialog fields.
*/
public void getData()
{
wStepname.selectAll();
if(input.getLinesRange()!=null) wLinesRange.setText(Const.NVL(input.getLinesRange(),SampleRowsMeta.DEFAULT_RANGE));
if(input.getLineNumberField()!=null) wLineNumberField.setText(input.getLineNumberField());
}
示例2: generateSampleStep
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
private StepMeta generateSampleStep() {
SampleRowsMeta meta = new SampleRowsMeta();
meta.setLinesRange("1.."+rowLimit);
StepMeta stepMeta = new StepMeta("Sample rows", meta);
stepMeta.setLocation(xLocation, 50);
xLocation+=100;
stepMeta.setDraw(true);
return stepMeta;
}
示例3: getData
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
/**
* Copy information from the meta-data input to the dialog fields.
*/
public void getData() {
if ( input.getLinesRange() != null ) {
wLinesRange.setText( Const.NVL( input.getLinesRange(), SampleRowsMeta.DEFAULT_RANGE ) );
}
if ( input.getLineNumberField() != null ) {
wLineNumberField.setText( input.getLineNumberField() );
}
wStepname.selectAll();
wStepname.setFocus();
}
示例4: SampleRowsDialog
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
public SampleRowsDialog(Shell parent, Object in, TransMeta tr, String sname)
{
super(parent, (BaseStepMeta)in, tr, sname);
input=(SampleRowsMeta)in;
}
示例5: getInfo
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
private void getInfo(SampleRowsMeta inf)
{
inf.setLinesRange(Const.NVL(wLinesRange.getText(),SampleRowsMeta.DEFAULT_RANGE));
inf.setLineNumberField(wLineNumberField.getText());
stepname = wStepname.getText(); // return value
}
示例6: SampleRowsDialog
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
public SampleRowsDialog( Shell parent, Object in, TransMeta tr, String sname ) {
super( parent, (BaseStepMeta) in, tr, sname );
input = (SampleRowsMeta) in;
}
示例7: getInfo
import org.pentaho.di.trans.steps.samplerows.SampleRowsMeta; //导入依赖的package包/类
private void getInfo( SampleRowsMeta inf ) {
inf.setLinesRange( Const.NVL( wLinesRange.getText(), SampleRowsMeta.DEFAULT_RANGE ) );
inf.setLineNumberField( wLineNumberField.getText() );
stepname = wStepname.getText(); // return value
}