Examples of DelayingInfinitiveInputIterator


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

    int valCnt = 1;
   
    setOutput(this.output);
   
    addInput(new UniformRecordGenerator(keyCnt, valCnt, false));
    addInput(new DelayingInfinitiveInputIterator(100));
   
    getTaskConfig().setDriverStrategy(DriverStrategy.NESTEDLOOP_STREAMED_OUTER_SECOND);
    getTaskConfig().setRelativeMemoryDriver(cross_frac);
   
    final CrossDriver<Record, Record, Record> testTask = new CrossDriver<Record, Record, Record>();
View Full Code Here

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

    setNumFileHandlesForSort(4);
   
    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

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

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

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

  @Test
  public void testCancelHashMatchTaskWhileBuildFirst() {
    int keyCnt = 20;
    int valCnt = 20;
   
    addInput(new DelayingInfinitiveInputIterator(100));
    addInput(new UniformRecordGenerator(keyCnt, valCnt, false));
   
    addDriverComparator(this.comparator1);
    addDriverComparator(this.comparator2);
   
View Full Code Here

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

  public void testHashCancelMatchTaskWhileBuildSecond() {
    int keyCnt = 20;
    int valCnt = 20;
   
    addInput(new UniformRecordGenerator(keyCnt, valCnt, false));
    addInput(new DelayingInfinitiveInputIterator(100));
    addDriverComparator(this.comparator1);
    addDriverComparator(this.comparator2);
    getTaskConfig().setDriverPairComparator(RecordPairComparatorFactory.get());
    setOutput(new NirvanaOutputList());
    getTaskConfig().setDriverStrategy(DriverStrategy.HYBRIDHASH_BUILD_SECOND);
View Full Code Here

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

  }
 
  @Test
  public void testCancelCombineTaskSorting()
  {
    addInput(new DelayingInfinitiveInputIterator(100));
    addDriverComparator(this.comparator);
    addDriverComparator(this.comparator);
    setOutput(new DiscardingOutputCollector<Record>());
   
    getTaskConfig().setDriverStrategy(DriverStrategy.SORTED_GROUP_COMBINE);
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.