public static class PigMapReduceCounter.PigMapCounter
extends org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.mapreduce.Mapper.Context |
context |
static java.lang.String |
taskID |
errorInMap, keyType, mp, stores, tf
Constructor and Description |
---|
PigMapReduceCounter.PigMapCounter() |
Modifier and Type | Method and Description |
---|---|
void |
collect(org.apache.hadoop.mapreduce.Mapper.Context context,
Tuple tuple)
While tuples are collected, they are counted one by one by a global counter per task.
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Here is set up the task id, in order to be attached to each tuple
|
getIllustratorContext, inIllustrator
cleanup, getKeyType, map, runPipeline, setKeyType, setMapPlan
public static java.lang.String taskID
public static org.apache.hadoop.mapreduce.Mapper.Context context
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class PigGenericMapBase
java.io.IOException
java.lang.InterruptedException
public void collect(org.apache.hadoop.mapreduce.Mapper.Context context, Tuple tuple) throws java.lang.InterruptedException, java.io.IOException
collect
in class PigGenericMapBase
java.lang.InterruptedException
java.io.IOException
Copyright © 2007-2012 The Apache Software Foundation