Package co.cask.cdap.pipeline

Examples of co.cask.cdap.pipeline.Context


      @Override
      public T call() throws Exception {
        Object input = o;
        Object output = null;
        for (Stage stage : getStages()) {
          Context ctx = new StageContext(input);
          stage.process(ctx);
          output = ctx.getDownStream();
          input = output;  // Output of previous stage is input to next stage.
        }
        return (T) output;
      }
    });
View Full Code Here


  public ListenableFuture<T> execute(Object o) {
    try {
      Object input = o;
      Object output = null;
      for (Stage stage : getStages()) {
        Context ctx = new StageContext(input);
        stage.process(ctx);
        output = ctx.getDownStream();
        input = output;  // Output of previous stage is input to next stage.
      }
      return (ListenableFuture<T>) Futures.immediateFuture(output);
    } catch (Throwable th) {
      return Futures.immediateFailedFuture(th);
View Full Code Here

TOP

Related Classes of co.cask.cdap.pipeline.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.