org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class PigMapBase.IllustratorContext

java.lang.Object
  extended by org.apache.hadoop.mapreduce.JobContext
      extended by org.apache.hadoop.mapreduce.TaskAttemptContext
          extended by org.apache.hadoop.mapreduce.TaskInputOutputContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
              extended by org.apache.hadoop.mapreduce.MapContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
                  extended by org.apache.hadoop.mapreduce.Mapper.Context
                      extended by org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.IllustratorContext
All Implemented Interfaces:
org.apache.hadoop.util.Progressable
Enclosing class:
PigMapBase

public class PigMapBase.IllustratorContext
extends org.apache.hadoop.mapreduce.Mapper.Context


Field Summary
 
Fields inherited from class org.apache.hadoop.mapreduce.JobContext
COMBINE_CLASS_ATTR, conf, INPUT_FORMAT_CLASS_ATTR, MAP_CLASS_ATTR, OUTPUT_FORMAT_CLASS_ATTR, PARTITIONER_CLASS_ATTR, REDUCE_CLASS_ATTR
 
Constructor Summary
PigMapBase.IllustratorContext(org.apache.hadoop.conf.Configuration conf, DataBag input, List<Pair<PigNullableWritable,org.apache.hadoop.io.Writable>> output, org.apache.hadoop.mapreduce.InputSplit split)
           
 
Method Summary
 org.apache.hadoop.io.Text getCurrentKey()
           
 Tuple getCurrentValue()
           
 boolean nextKeyValue()
           
 void progress()
           
 void write(PigNullableWritable key, org.apache.hadoop.io.Writable value)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.MapContext
getInputSplit
 
Methods inherited from class org.apache.hadoop.mapreduce.TaskInputOutputContext
getCounter, getCounter, getOutputCommitter, setStatus
 
Methods inherited from class org.apache.hadoop.mapreduce.TaskAttemptContext
getStatus, getTaskAttemptID
 
Methods inherited from class org.apache.hadoop.mapreduce.JobContext
getCombinerClass, getConfiguration, getGroupingComparator, getInputFormatClass, getJar, getJobID, getJobName, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getReducerClass, getSortComparator, getWorkingDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PigMapBase.IllustratorContext

public PigMapBase.IllustratorContext(org.apache.hadoop.conf.Configuration conf,
                                     DataBag input,
                                     List<Pair<PigNullableWritable,org.apache.hadoop.io.Writable>> output,
                                     org.apache.hadoop.mapreduce.InputSplit split)
                              throws IOException,
                                     InterruptedException
Throws:
IOException
InterruptedException
Method Detail

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Overrides:
nextKeyValue in class org.apache.hadoop.mapreduce.MapContext<org.apache.hadoop.io.Text,Tuple,PigNullableWritable,org.apache.hadoop.io.Writable>
Throws:
IOException
InterruptedException

getCurrentKey

public org.apache.hadoop.io.Text getCurrentKey()
Overrides:
getCurrentKey in class org.apache.hadoop.mapreduce.MapContext<org.apache.hadoop.io.Text,Tuple,PigNullableWritable,org.apache.hadoop.io.Writable>

getCurrentValue

public Tuple getCurrentValue()
Overrides:
getCurrentValue in class org.apache.hadoop.mapreduce.MapContext<org.apache.hadoop.io.Text,Tuple,PigNullableWritable,org.apache.hadoop.io.Writable>

write

public void write(PigNullableWritable key,
                  org.apache.hadoop.io.Writable value)
           throws IOException,
                  InterruptedException
Overrides:
write in class org.apache.hadoop.mapreduce.TaskInputOutputContext<org.apache.hadoop.io.Text,Tuple,PigNullableWritable,org.apache.hadoop.io.Writable>
Throws:
IOException
InterruptedException

progress

public void progress()
Specified by:
progress in interface org.apache.hadoop.util.Progressable
Overrides:
progress in class org.apache.hadoop.mapreduce.TaskInputOutputContext<org.apache.hadoop.io.Text,Tuple,PigNullableWritable,org.apache.hadoop.io.Writable>


Copyright © ${year} The Apache Software Foundation