Package org.apache.hadoop.mrunit.types

Examples of org.apache.hadoop.mrunit.types.UncomparableWritable


        .newMultipleInputMapReduceDriver(new IdentityReducer<Text, Object>());

    Mapper<Text, Object, Text, Object> identity = new IdentityMapper<Text, Object>();
    testDriver.addMapper(identity);
    Text k1 = new Text("foo");
    Object v1 = new UncomparableWritable(1);
    testDriver.withInput(identity, k1, v1);

    ReverseIdentityMapper<Object, Text> reverse = new ReverseIdentityMapper<Object, Text>();
    testDriver.addMapper(reverse);
    Text k2 = new Text("bar");
    Object v2 = new UncomparableWritable(2);
    testDriver.withInput(reverse, v2, k2);

    testDriver.withOutput(k1, v1).withOutput(k2, v2);

    testDriver.runTest(false);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.mrunit.types.UncomparableWritable

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.