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 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 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-2012 The Apache Software Foundation