Package org.apache.hadoop.mrunit

Examples of org.apache.hadoop.mrunit.MapDriver


  }

  @Test
  public void testRepeatedObjectUse() {
    Mapper<Text, Text, Text, Text> mapper = new RepeatMapper();
    MapDriver<Text, Text, Text, Text> driver = new MapDriver(mapper);

    driver.withInput(new Text("inK"), new Text("inV"))
          .withOutput(new Text("1"), new Text("a"))
          .withOutput(new Text("2"), new Text("b"))
          .withOutput(new Text("3"), new Text("c"))
          .runTest();
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.mrunit.MapDriver

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.