public class PigInputFormat extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
static String |
PIG_INPUT_LIMITS |
static String |
PIG_INPUT_SIGNATURES |
static String |
PIG_INPUT_TARGETS |
static String |
PIG_INPUTS |
static org.apache.hadoop.conf.Configuration |
sJob
Deprecated.
Use
UDFContext instead in the following way to get
the job's Configuration :
UdfContext.getUdfContext().getJobConf() |
Constructor and Description |
---|
PigInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static PigSplit |
getActiveSplit() |
protected List<org.apache.hadoop.mapreduce.InputSplit> |
getPigSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
int inputIndex,
ArrayList<OperatorKey> targetOps,
long blockSize,
boolean combinable,
org.apache.hadoop.conf.Configuration conf) |
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext jobcontext) |
public static final org.apache.commons.logging.Log log
public static final String PIG_INPUTS
public static final String PIG_INPUT_TARGETS
public static final String PIG_INPUT_SIGNATURES
public static final String PIG_INPUT_LIMITS
@Deprecated public static org.apache.hadoop.conf.Configuration sJob
UDFContext
instead in the following way to get
the job's Configuration
:
UdfContext.getUdfContext().getJobConf()
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>
IOException
InterruptedException
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext jobcontext) throws IOException, InterruptedException
getSplits
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>
IOException
InterruptedException
protected List<org.apache.hadoop.mapreduce.InputSplit> getPigSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits, int inputIndex, ArrayList<OperatorKey> targetOps, long blockSize, boolean combinable, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOException
InterruptedException
public static PigSplit getActiveSplit()
Copyright © 2007-2012 The Apache Software Foundation