Package org.apache.crunch.impl.mr

Examples of org.apache.crunch.impl.mr.MRPipeline$StringifyFn


    pipeline.done();

    //verify HBaseTarget supports deletes.
    Scan clearScan = new Scan();
    clearScan.addFamily(COUNTS_COLFAM);
    pipeline = new MRPipeline(WordCountHBaseIT.class, hbaseTestUtil.getConfiguration());
    HBaseSourceTarget clearSource = new HBaseSourceTarget(outputTableName, clearScan);
    PTable<ImmutableBytesWritable, Result> counts = pipeline.read(clearSource);
    pipeline.write(clearCounts(counts), new HBaseTarget(outputTableName));
    pipeline.done();
View Full Code Here


    runLegacyMapsideLeftOuterJoin(MemPipeline.getInstance(), true, true, new MapsideJoinStrategy<Integer, String, String>(true));
  }

  @Test
  public void testMapsideJoin_RightSideIsEmpty() throws IOException {
    MRPipeline pipeline = new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration());
    PTable<Integer, String> customerTable = readTable(pipeline, "customers.txt");
    PTable<Integer, String> orderTable = readTable(pipeline, "orders.txt");

    PTable<Integer, String> filteredOrderTable = orderTable
        .parallelDo(FilterFns.<Pair<Integer, String>>REJECT_ALL(), orderTable.getPTableType());
View Full Code Here

    assertTrue(materializedJoin.isEmpty());
  }

  @Test
  public void testLegacyMapsideJoin_LeftSideIsEmpty() throws IOException {
    MRPipeline pipeline = new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration());
    PTable<Integer, String> customerTable = readTable(pipeline, "customers.txt");
    PTable<Integer, String> orderTable = readTable(pipeline, "orders.txt");

    PTable<Integer, String> filteredCustomerTable = customerTable
        .parallelDo(FilterFns.<Pair<Integer, String>>REJECT_ALL(), customerTable.getPTableType());
View Full Code Here

    assertTrue(materializedJoin.isEmpty());
  }

  @Test
  public void testMapsideJoin() throws IOException {
    runMapsideJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                   false, false, MapsideJoinStrategy.<Integer, String, String>create(false));
  }
View Full Code Here

                   false, false, MapsideJoinStrategy.<Integer, String, String>create(false));
  }

  @Test
  public void testLegacyMapsideJoin() throws IOException {
    runLegacyMapsideJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                   false, false, new MapsideJoinStrategy<Integer, String, String>(false));
  }
View Full Code Here

                   false, false, new MapsideJoinStrategy<Integer, String, String>(false));
  }

  @Test
  public void testMapsideJoin_Materialized() throws IOException {
    runMapsideJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                   false, true, MapsideJoinStrategy.<Integer, String, String>create(true));
  }
View Full Code Here

                   false, true, MapsideJoinStrategy.<Integer, String, String>create(true));
  }

  @Test
  public void testLegacyMapsideJoin_Materialized() throws IOException {
    runLegacyMapsideJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                   false, true, new MapsideJoinStrategy<Integer, String, String>(true));
  }
View Full Code Here

                   false, true, new MapsideJoinStrategy<Integer, String, String>(true));
  }

  @Test
  public void testMapsideJoin_RightOuterJoin() throws IOException {
    runMapsideRightOuterJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                             false, false, MapsideJoinStrategy.<Integer, String, String>create(false));
  }
View Full Code Here

                             false, false, MapsideJoinStrategy.<Integer, String, String>create(false));
  }

  @Test
  public void testLegacyMapsideJoin_LeftOuterJoin() throws IOException {
    runLegacyMapsideLeftOuterJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                                  false, false,
                                  new MapsideJoinStrategy<Integer, String, String>(false));
  }
View Full Code Here

                                  new MapsideJoinStrategy<Integer, String, String>(false));
  }

  @Test
  public void testMapsideJoin_RightOuterJoin_Materialized() throws IOException {
    runMapsideRightOuterJoin(new MRPipeline(MapsideJoinStrategyIT.class, tmpDir.getDefaultConfiguration()),
                             false, true, MapsideJoinStrategy.<Integer, String, String>create(true));
  }
View Full Code Here

TOP

Related Classes of org.apache.crunch.impl.mr.MRPipeline$StringifyFn

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.