public static class PigMapReduceCounter.PigMapCounter extends PigMapBase
PigMapBase.IllustratorContext| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.mapreduce.Mapper.Context |
context |
static String |
taskID |
errorInMap, keyType, mp, stores, tf| Constructor and Description |
|---|
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, inIllustratorcleanup, getKeyType, map, runPipeline, setKeyType, setMapPlanpublic static String taskID
public static org.apache.hadoop.mapreduce.Mapper.Context context
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class PigGenericMapBaseIOExceptionInterruptedExceptionpublic void collect(org.apache.hadoop.mapreduce.Mapper.Context context,
Tuple tuple)
throws InterruptedException,
IOException
collect in class PigGenericMapBaseInterruptedExceptionIOExceptionCopyright © 2007-2017 The Apache Software Foundation