public class PigInputFormat extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>
Modifier and Type | Class and Description |
---|---|
protected static class |
PigInputFormat.RecordReaderFactory
Helper class to create record reader
|
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 |
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) |
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
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
Copyright © 2007-2017 The Apache Software Foundation