@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ComposableInputFormat<K extends WritableComparable<?>,V extends Writable> extends InputFormat<K,V>
Constructor and Description |
---|
ComposableInputFormat() |
Modifier and Type | Method and Description |
---|---|
abstract ComposableRecordReader<K,V> |
createRecordReader(InputSplit split,
TaskAttemptContext context)
Create a record reader for a given split.
|
getSplits
public abstract ComposableRecordReader<K,V> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
InputFormat
RecordReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createRecordReader
in class InputFormat<K extends WritableComparable<?>,V extends Writable>
split
- the split to be readcontext
- the information about the taskIOException
InterruptedException
Copyright © 2017 Apache Software Foundation. All rights reserved.