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, inIllustrator
cleanup, getKeyType, map, runPipeline, setKeyType, setMapPlan
public 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 PigGenericMapBase
IOException
InterruptedException
public void collect(org.apache.hadoop.mapreduce.Mapper.Context context, Tuple tuple) throws InterruptedException, IOException
collect
in class PigGenericMapBase
InterruptedException
IOException
Copyright © 2007-2017 The Apache Software Foundation