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 java.lang.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 java.util.List<org.apache.hadoop.mapreduce.InputSplit> |
getPigSplits(java.util.List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
int inputIndex,
java.util.ArrayList<OperatorKey> targetOps,
long blockSize,
boolean combinable,
org.apache.hadoop.conf.Configuration conf) |
java.util.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 java.lang.String PIG_INPUTS
@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 java.io.IOException, java.lang.InterruptedException
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>java.io.IOExceptionjava.lang.InterruptedExceptionpublic java.util.List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext jobcontext)
throws java.io.IOException,
java.lang.InterruptedException
getSplits in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>java.io.IOExceptionjava.lang.InterruptedExceptionprotected java.util.List<org.apache.hadoop.mapreduce.InputSplit> getPigSplits(java.util.List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
int inputIndex,
java.util.ArrayList<OperatorKey> targetOps,
long blockSize,
boolean combinable,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static PigSplit getActiveSplit()
Copyright © 2007-2012 The Apache Software Foundation