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 java.lang.String |
PIG_INPUT_LIMITS |
static java.lang.String |
PIG_INPUT_SIGNATURES |
static java.lang.String |
PIG_INPUT_TARGETS |
static java.lang.String |
PIG_LOADS |
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 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_LOADS
public static final java.lang.String PIG_INPUT_TARGETS
public static final java.lang.String PIG_INPUT_SIGNATURES
public static final java.lang.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 java.io.IOException, java.lang.InterruptedException
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.Text,Tuple>
java.io.IOException
java.lang.InterruptedException
public 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.IOException
java.lang.InterruptedException
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) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
Copyright © 2007-2025 The Apache Software Foundation