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 java.util.List<PhysicalOperator> |
leaves |
static java.lang.String |
taskID |
errorInReduce, initialized, outputCollector, pack, rp, stores
Constructor and Description |
---|
PigMapReduceCounter.PigReduceCounter() |
Modifier and Type | Method and Description |
---|---|
static void |
incrementCounter(java.lang.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 java.lang.String taskID
public static org.apache.hadoop.mapreduce.Reducer.Context context
public static java.util.List<PhysicalOperator> leaves
public static PhysicalOperator leaf
public PigMapReduceCounter.PigReduceCounter()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class PigGenericMapReduce.Reduce
java.io.IOException
java.lang.InterruptedException
public static void incrementCounter(java.lang.Long increment)
increment
- is the value to add to the corresponding global counter.Copyright © 2007-2012 The Apache Software Foundation