Package | Description |
---|---|
org.apache.hadoop.mrunit.mapreduce |
Modifier and Type | Method and Description |
---|---|
static <K1,V1,K2,V2,K3,V3> |
MapReduceDriver.newMapReduceDriver()
Returns a new MapReduceDriver without having to specify the generic types
on the right hand side of the object create statement.
|
static <K1,V1,K2,V2,K3,V3> |
MapReduceDriver.newMapReduceDriver(org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2> mapper,
org.apache.hadoop.mapreduce.Reducer<K2,V2,K3,V3> reducer)
Returns a new MapReduceDriver without having to specify the generic types
on the right hand side of the object create statement.
|
static <K1,V1,K2,V2,K3,V3> |
MapReduceDriver.newMapReduceDriver(org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2> mapper,
org.apache.hadoop.mapreduce.Reducer<K2,V2,K3,V3> reducer,
org.apache.hadoop.mapreduce.Reducer<K2,V2,K2,V2> combiner)
Returns a new MapReduceDriver without having to specify the generic types
on the right hand side of the object create statement.
|
MapReduceDriver<K1,V1,K2,V2,K3,V3> |
MapReduceDriver.withCombiner(org.apache.hadoop.mapreduce.Reducer<K2,V2,K2,V2> c)
Identical to setCombiner(), but with fluent programming style
|
MapReduceDriver<K1,V1,K2,V2,K3,V3> |
MapReduceDriver.withCounters(org.apache.hadoop.mapreduce.Counters ctrs)
Sets the counters to use and returns self for fluent style
|
MapReduceDriver<K1,V1,K2,V2,K3,V3> |
MapReduceDriver.withMapper(org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2> m)
Sets the Mapper instance to use and returns self for fluent style
|
MapReduceDriver<K1,V1,K2,V2,K3,V3> |
MapReduceDriver.withOutputFormat(Class<? extends org.apache.hadoop.mapreduce.OutputFormat> outputFormatClass,
Class<? extends org.apache.hadoop.mapreduce.InputFormat> inputFormatClass)
Configure
Reducer to output with a real OutputFormat . |
MapReduceDriver<K1,V1,K2,V2,K3,V3> |
MapReduceDriver.withReducer(org.apache.hadoop.mapreduce.Reducer<K2,V2,K3,V3> r)
Identical to setReducer(), but with fluent programming style
|
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.