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;
}
Aggregations