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

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


    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here


    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new UniformRecordGenerator(keyCnt1, valCnt1, false), this.comparator1.duplicate());
      addInput(new UniformRecordGenerator(keyCnt2, valCnt2, true));
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInput(new UniformRecordGenerator(keyCnt1, valCnt1, true));
      addInputSorted(new UniformRecordGenerator(keyCnt2, valCnt2, false), this.comparator2.duplicate());
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
View Full Code Here

    getTaskConfig().setMemoryDriver(BNLJN_MEM);
    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    addInput(new UniformRecordGenerator(keyCnt1, valCnt1, true));
    addInput(new UniformRecordGenerator(keyCnt2, valCnt2, true));
   
    try {
      testDriver(testTask, MockMatchStub.class);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

    getTaskConfig().setMemoryDriver(BNLJN_MEM);
    setNumFileHandlesForSort(4);
   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    addInput(new UniformRecordGenerator(keyCnt1, valCnt1, true));
    addInput(new UniformRecordGenerator(keyCnt2, valCnt2, true));
   
    try {
      testDriver(testTask, MockFailingMatchStub.class);
      Assert.fail("Driver did not forward Exception.");
    } catch (ExpectedTestException e) {
View Full Code Here

   
    final MatchDriver<Record, Record, Record> testTask = new MatchDriver<Record, Record, Record>();
   
    try {
      addInputSorted(new DelayingInfinitiveInputIterator(100), this.comparator1.duplicate());
      addInput(new UniformRecordGenerator(keyCnt, valCnt, true));
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("The test caused an exception.");
    }
   
View Full Code Here

TOP

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

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.