Search in sources :

Example 1 with RecordsFromStreamMeta

use of org.pentaho.di.trans.steps.recordsfromstream.RecordsFromStreamMeta in project pentaho-kettle by pentaho.

the class BaseStreamingDialog method createSubTransMeta.

protected TransMeta createSubTransMeta() {
    RecordsFromStreamMeta rm = new RecordsFromStreamMeta();
    String[] fieldNames = getFieldNames();
    int[] empty = new int[fieldNames.length];
    Arrays.fill(empty, -1);
    rm.setFieldname(fieldNames);
    rm.setType(getFieldTypes());
    rm.setLength(empty);
    rm.setPrecision(empty);
    StepMeta recsFromStream = new StepMeta("RecordsFromStream", "Get records from stream", rm);
    recsFromStream.setLocation(new Point(100, 100));
    recsFromStream.setDraw(true);
    TransMeta transMeta = new TransMeta();
    transMeta.addStep(recsFromStream);
    transMeta.setFilename("");
    return transMeta;
}
Also used : TransMeta(org.pentaho.di.trans.TransMeta) RecordsFromStreamMeta(org.pentaho.di.trans.steps.recordsfromstream.RecordsFromStreamMeta) Point(org.pentaho.di.core.gui.Point) KettleExtensionPoint(org.pentaho.di.core.extension.KettleExtensionPoint) StepMeta(org.pentaho.di.trans.step.StepMeta) BaseStepMeta(org.pentaho.di.trans.step.BaseStepMeta) BaseStreamStepMeta(org.pentaho.di.trans.streaming.common.BaseStreamStepMeta)

Aggregations

KettleExtensionPoint (org.pentaho.di.core.extension.KettleExtensionPoint)1 Point (org.pentaho.di.core.gui.Point)1 TransMeta (org.pentaho.di.trans.TransMeta)1 BaseStepMeta (org.pentaho.di.trans.step.BaseStepMeta)1 StepMeta (org.pentaho.di.trans.step.StepMeta)1 RecordsFromStreamMeta (org.pentaho.di.trans.steps.recordsfromstream.RecordsFromStreamMeta)1 BaseStreamStepMeta (org.pentaho.di.trans.streaming.common.BaseStreamStepMeta)1