public static class PigMapReduceCounter.PigReduceCounter
extends org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce.Reduce
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.mapreduce.Reducer.Context |
context |
static PhysicalOperator |
leaf |
static List<PhysicalOperator> |
leaves |
static String |
taskID |
errorInReduce, initialized, outputCollector, pack, rp, stores
Constructor and Description |
---|
PigMapReduceCounter.PigReduceCounter() |
Modifier and Type | Method and Description |
---|---|
static void |
incrementCounter(Long increment)
On this case, global counters are accessed during reduce phase (immediately after a
sorting phase) and the increment for global counters are dependent if it is dense rank
or not.
|
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context)
Here is set up the task id, in order to be attached to each tuple
|
getIllustratorContext, getPack, inIllustrator
cleanup, processOnePackageOutput, reduce, runPipeline, setReducePlan
public static String taskID
public static org.apache.hadoop.mapreduce.Reducer.Context context
public static List<PhysicalOperator> leaves
public static PhysicalOperator leaf
public PigMapReduceCounter.PigReduceCounter()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
setup
in class PigGenericMapReduce.Reduce
IOException
InterruptedException
public static void incrementCounter(Long increment)
increment
- is the value to add to the corresponding global counter.Copyright © 2007-2012 The Apache Software Foundation