Package org.apache.flink.test.recordJobs.util

Examples of org.apache.flink.test.recordJobs.util.InfiniteIntegerInputFormat


  }

//  @Test
  public void testCancelSortMatchWhileReadingFastInputs() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source1 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 1");

    GenericDataSource<InfiniteIntegerInputFormat> source2 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 2");
   
    JoinOperator matcher = JoinOperator.builder(SimpleMatcher.class, IntValue.class, 0, 0)
      .input1(source1)
      .input2(source2)
      .name("Sort Join")
View Full Code Here


  }
 
//  @Test
  public void testCancelSortMatchPriorToFirstRecordReading() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source1 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 1");

    GenericDataSource<InfiniteIntegerInputFormat> source2 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 2");
   
    JoinOperator matcher = JoinOperator.builder(StuckInOpenMatcher.class, IntValue.class, 0, 0)
      .input1(source1)
      .input2(source2)
      .name("Stuc-In-Open Match")
View Full Code Here

 
//  @Test
  public void testCancelSortMatchWithHighDOP() throws Exception {
   
    GenericDataSource<InfiniteIntegerInputFormat> source1 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 1");

    GenericDataSource<InfiniteIntegerInputFormat> source2 =
      new GenericDataSource<InfiniteIntegerInputFormat>(new InfiniteIntegerInputFormat(), "Source 2");
   
    JoinOperator matcher = JoinOperator.builder(new SimpleMatcher(), IntValue.class, 0, 0)
      .input1(source1)
      .input2(source2)
      .name("Sort Join")
View Full Code Here

  }
 
//  @Test
  public void testMapCancelling() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source = new GenericDataSource<InfiniteIntegerInputFormat>(
                                    new InfiniteIntegerInputFormat(), "Source");
    MapOperator mapper = MapOperator.builder(IdentityMapper.class)
      .input(source)
      .name("Identity Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
View Full Code Here

  }
 
//  @Test
  public void testSlowMapCancelling() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source = new GenericDataSource<InfiniteIntegerInputFormat>(
                                    new InfiniteIntegerInputFormat(), "Source");
    MapOperator mapper = MapOperator.builder(DelayingIdentityMapper.class)
      .input(source)
      .name("Delay Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
View Full Code Here

  }
 
//  @Test
  public void testMapWithLongCancellingResponse() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source = new GenericDataSource<InfiniteIntegerInputFormat>(
                                    new InfiniteIntegerInputFormat(), "Source");
    MapOperator mapper = MapOperator.builder(LongCancelTimeIdentityMapper.class)
      .input(source)
      .name("Long Cancelling Time Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
View Full Code Here

  }
 
//  @Test
  public void testMapPriorToFirstRecordReading() throws Exception {
    GenericDataSource<InfiniteIntegerInputFormat> source = new GenericDataSource<InfiniteIntegerInputFormat>(
                                    new InfiniteIntegerInputFormat(), "Source");
    MapOperator mapper = MapOperator.builder(StuckInOpenIdentityMapper.class)
      .input(source)
      .name("Stuck-In-Open Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
View Full Code Here

TOP

Related Classes of org.apache.flink.test.recordJobs.util.InfiniteIntegerInputFormat

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.