Search in sources :

Example 1 with Stream

use of org.pentaho.di.trans.step.errorhandling.Stream in project pentaho-kettle by pentaho.

the class FilterRowsMeta method getStepIOMeta.

/**
 * Returns the Input/Output metadata for this step.
 */
public StepIOMetaInterface getStepIOMeta() {
    StepIOMetaInterface ioMeta = super.getStepIOMeta(false);
    if (ioMeta == null) {
        ioMeta = new StepIOMeta(true, true, false, false, false, false);
        ioMeta.addStream(new Stream(StreamType.TARGET, null, BaseMessages.getString(PKG, "FilterRowsMeta.InfoStream.True.Description"), StreamIcon.TRUE, null));
        ioMeta.addStream(new Stream(StreamType.TARGET, null, BaseMessages.getString(PKG, "FilterRowsMeta.InfoStream.False.Description"), StreamIcon.FALSE, null));
        setStepIOMeta(ioMeta);
    }
    return ioMeta;
}
Also used : StepIOMeta(org.pentaho.di.trans.step.StepIOMeta) StepIOMetaInterface(org.pentaho.di.trans.step.StepIOMetaInterface) Stream(org.pentaho.di.trans.step.errorhandling.Stream)

Example 2 with Stream

use of org.pentaho.di.trans.step.errorhandling.Stream in project pentaho-kettle by pentaho.

the class TransExecutorMeta method getStepIOMeta.

@Override
public StepIOMetaInterface getStepIOMeta() {
    StepIOMetaInterface ioMeta = super.getStepIOMeta(false);
    if (ioMeta == null) {
        ioMeta = new StepIOMeta(true, true, true, false, true, false);
        ioMeta.addStream(new Stream(StreamType.TARGET, executionResultTargetStepMeta, BaseMessages.getString(PKG, "TransExecutorMeta.ResultStream.Description"), StreamIcon.TARGET, null));
        ioMeta.addStream(new Stream(StreamType.TARGET, outputRowsSourceStepMeta, BaseMessages.getString(PKG, "TransExecutorMeta.ResultRowsStream.Description"), StreamIcon.TARGET, null));
        ioMeta.addStream(new Stream(StreamType.TARGET, resultFilesTargetStepMeta, BaseMessages.getString(PKG, "TransExecutorMeta.ResultFilesStream.Description"), StreamIcon.TARGET, null));
        ioMeta.addStream(new Stream(StreamType.TARGET, executorsOutputStepMeta, BaseMessages.getString(PKG, "TransExecutorMeta.ExecutorOutputStream.Description"), StreamIcon.OUTPUT, null));
        setStepIOMeta(ioMeta);
    }
    return ioMeta;
}
Also used : StepIOMeta(org.pentaho.di.trans.step.StepIOMeta) StepIOMetaInterface(org.pentaho.di.trans.step.StepIOMetaInterface) Stream(org.pentaho.di.trans.step.errorhandling.Stream)

Example 3 with Stream

use of org.pentaho.di.trans.step.errorhandling.Stream in project pentaho-kettle by pentaho.

the class TableInputMeta method getStepIOMeta.

/**
 * Returns the Input/Output metadata for this step. The generator step only produces output, does not accept input!
 */
public StepIOMetaInterface getStepIOMeta() {
    StepIOMetaInterface ioMeta = super.getStepIOMeta(false);
    if (ioMeta == null) {
        ioMeta = new StepIOMeta(true, true, false, false, false, false);
        StreamInterface stream = new Stream(StreamType.INFO, null, BaseMessages.getString(PKG, "TableInputMeta.InfoStream.Description"), StreamIcon.INFO, null);
        ioMeta.addStream(stream);
        setStepIOMeta(ioMeta);
    }
    return ioMeta;
}
Also used : StepIOMeta(org.pentaho.di.trans.step.StepIOMeta) StepIOMetaInterface(org.pentaho.di.trans.step.StepIOMetaInterface) Stream(org.pentaho.di.trans.step.errorhandling.Stream) ByteArrayInputStream(java.io.ByteArrayInputStream) StreamInterface(org.pentaho.di.trans.step.errorhandling.StreamInterface)

Example 4 with Stream

use of org.pentaho.di.trans.step.errorhandling.Stream in project pentaho-kettle by pentaho.

the class AppendMeta method getStepIOMeta.

/**
 * Returns the Input/Output metadata for this step.
 */
public StepIOMetaInterface getStepIOMeta() {
    StepIOMetaInterface ioMeta = super.getStepIOMeta(false);
    if (ioMeta == null) {
        ioMeta = new StepIOMeta(true, true, false, false, false, false);
        ioMeta.addStream(new Stream(StreamType.INFO, null, BaseMessages.getString(PKG, "AppendMeta.InfoStream.FirstStream.Description"), StreamIcon.INFO, null));
        ioMeta.addStream(new Stream(StreamType.INFO, null, BaseMessages.getString(PKG, "AppendMeta.InfoStream.SecondStream.Description"), StreamIcon.INFO, null));
        setStepIOMeta(ioMeta);
    }
    return ioMeta;
}
Also used : StepIOMeta(org.pentaho.di.trans.step.StepIOMeta) StepIOMetaInterface(org.pentaho.di.trans.step.StepIOMetaInterface) Stream(org.pentaho.di.trans.step.errorhandling.Stream)

Example 5 with Stream

use of org.pentaho.di.trans.step.errorhandling.Stream in project pentaho-kettle by pentaho.

the class MultiMergeJoinMeta method searchInfoAndTargetSteps.

@Override
public void searchInfoAndTargetSteps(List<StepMeta> steps) {
    StepIOMetaInterface ioMeta = getStepIOMeta();
    ioMeta.getInfoStreams().clear();
    for (int i = 0; i < inputSteps.length; i++) {
        String inputStepName = inputSteps[i];
        if (i >= ioMeta.getInfoStreams().size()) {
            ioMeta.addStream(new Stream(StreamType.INFO, StepMeta.findStep(steps, inputStepName), BaseMessages.getString(PKG, "MultiMergeJoin.InfoStream.Description"), StreamIcon.INFO, inputStepName));
        }
    }
}
Also used : StepIOMetaInterface(org.pentaho.di.trans.step.StepIOMetaInterface) Stream(org.pentaho.di.trans.step.errorhandling.Stream)

Aggregations

Stream (org.pentaho.di.trans.step.errorhandling.Stream)21 StepIOMetaInterface (org.pentaho.di.trans.step.StepIOMetaInterface)18 StepIOMeta (org.pentaho.di.trans.step.StepIOMeta)15 StreamInterface (org.pentaho.di.trans.step.errorhandling.StreamInterface)11 ArrayList (java.util.ArrayList)3 Repository (org.pentaho.di.repository.Repository)3 StepMeta (org.pentaho.di.trans.step.StepMeta)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Arrays (java.util.Arrays)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 ResourceBundle (java.util.ResourceBundle)1 Set (java.util.Set)1 StringTokenizer (java.util.StringTokenizer)1 Timer (java.util.Timer)1 TimerTask (java.util.TimerTask)1