Package eu.stratosphere.pact.runtime.test.util

Examples of eu.stratosphere.pact.runtime.test.util.ExpectedTestException


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


       
        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

    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

        element = records.next();
        valCnt++;
      }
     
      if (++this.cnt >= 10) {
        throw new ExpectedTestException();
      }
     
      element.getField(0, this.key);
      this.value.setValue(valCnt - this.key.getValue());
      element.setField(1, this.value);
View Full Code Here

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

      while (records2.hasNext()) {
        Record record2 = records2.next();
        if (val1Cnt == 0) {
         
          if(++this.cnt>=10) {
            throw new ExpectedTestException();
          }
         
          out.collect(record2);
        } else {
          for (int i=0; i<val1Cnt; i++) {
           
            if(++this.cnt>=10) {
              throw new ExpectedTestException();
            }
           
            out.collect(record2);
          }
        }
View Full Code Here

TOP

Related Classes of eu.stratosphere.pact.runtime.test.util.ExpectedTestException

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.