public static class PigMapReduceCounter.PigReduceCounter extends PigMapReduce.Reduce
PigMapReduce.Reduce.IllustratorContextImpl
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 |
---|
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
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-2017 The Apache Software Foundation