Package org.apache.iceberg.mr.mapred
Class MapredIcebergInputFormat<T>
java.lang.Object
org.apache.iceberg.mr.mapred.MapredIcebergInputFormat<T>
- Type Parameters:
- T- Java class of records constructed by Iceberg; default is- Record
public class MapredIcebergInputFormat<T>
extends Object
implements org.apache.hadoop.mapred.InputFormat<Void,Container<T>> 
Generic MR v1 InputFormat API for Iceberg.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconfigure(org.apache.hadoop.mapred.JobConf job) Configures theJobConfto use theMapredIcebergInputFormatand returns a helper to add further configuration.getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) org.apache.hadoop.mapred.InputSplit[]getSplits(org.apache.hadoop.mapred.JobConf job, int numSplits) static org.apache.hadoop.mapreduce.TaskAttemptContextnewTaskAttemptContext(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) 
- 
Constructor Details- 
MapredIcebergInputFormatpublic MapredIcebergInputFormat()
 
- 
- 
Method Details- 
configureConfigures theJobConfto use theMapredIcebergInputFormatand returns a helper to add further configuration.- Parameters:
- job- the- JobConfto configure
 
- 
getSplitspublic org.apache.hadoop.mapred.InputSplit[] getSplits(org.apache.hadoop.mapred.JobConf job, int numSplits) throws IOException - Specified by:
- getSplitsin interface- org.apache.hadoop.mapred.InputFormat<Void,- Container<T>> 
- Throws:
- IOException
 
- 
getRecordReaderpublic org.apache.hadoop.mapred.RecordReader<Void,Container<T>> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException - Specified by:
- getRecordReaderin interface- org.apache.hadoop.mapred.InputFormat<Void,- Container<T>> 
- Throws:
- IOException
 
- 
newTaskAttemptContextpublic static org.apache.hadoop.mapreduce.TaskAttemptContext newTaskAttemptContext(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) 
 
-