Examples of ExpectedTestException


Examples of org.apache.flink.runtime.operators.testutils.ExpectedTestException

    private int cnt = 0;
   
    @Override
    public void join(Record record1, Record record2, Collector<Record> out) throws Exception {
      if (++this.cnt >= 10) {
        throw new ExpectedTestException();
      }
      out.collect(record1);
    }
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.ExpectedTestException

       
        sum += this.combineValue.getValue();
      }
     
      if (++this.cnt >= 10) {
        throw new ExpectedTestException();
      }
     
      this.combineValue.setValue(sum);
      element.setField(1, this.combineValue);
      out.collect(element);
View Full Code Here

Examples of org.apache.flink.runtime.operators.testutils.ExpectedTestException

    private int cnt = 0;
   
    @Override
    public void map(Record record, Collector<Record> out) throws Exception {
      if (++this.cnt >= 10) {
        throw new ExpectedTestException();
      }
      out.collect(record);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.