public static class PigCombiner.Combine extends org.apache.hadoop.mapreduce.Reducer<PigNullableWritable,NullableTuple,PigNullableWritable,org.apache.hadoop.io.Writable>
| Constructor and Description |
|---|
PigCombiner.Combine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
Will be called once all the intermediate keys and values are
processed.
|
byte |
getKeyType() |
boolean |
processOnePackageOutput(org.apache.hadoop.mapreduce.Reducer.Context oc) |
protected void |
reduce(PigNullableWritable key,
java.lang.Iterable<NullableTuple> tupIter,
org.apache.hadoop.mapreduce.Reducer.Context context)
The reduce function which packages the key and List <Tuple>
into key, Bag<Tuple> after converting Hadoop type key into Pig type.
|
void |
setKeyType(byte keyType) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context)
Configures the Reduce plan, the POPackage operator
and the reporter thread
|
static void |
staticDataCleanup() |
public static void staticDataCleanup()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
setup in class org.apache.hadoop.mapreduce.Reducer<PigNullableWritable,NullableTuple,PigNullableWritable,org.apache.hadoop.io.Writable>java.io.IOExceptionjava.lang.InterruptedExceptionprotected void reduce(PigNullableWritable key, java.lang.Iterable<NullableTuple> tupIter, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<PigNullableWritable,NullableTuple,PigNullableWritable,org.apache.hadoop.io.Writable>java.io.IOExceptionjava.lang.InterruptedExceptionpublic boolean processOnePackageOutput(org.apache.hadoop.mapreduce.Reducer.Context oc)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionprotected void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
cleanup in class org.apache.hadoop.mapreduce.Reducer<PigNullableWritable,NullableTuple,PigNullableWritable,org.apache.hadoop.io.Writable>java.io.IOExceptionjava.lang.InterruptedExceptionpublic byte getKeyType()
public void setKeyType(byte keyType)
keyType - the keyType to setCopyright © 2007-2012 The Apache Software Foundation