K - The type of the record's key. The same used by internalInputFormatV - The type of the record's value. The same used by internalInputFormat.
public abstract class WrapperInputFormat<I,J,K,V>
extends <any>
FileInputFormat.| Constructor and Description | 
|---|
WrapperInputFormat()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <K,V> <any> | 
createInternalInputFormat(JobContext context)  | 
static InputSplit | 
getFittingInputSplit(JobContext context, <any> inputFormat, InputSplit split)
Returns an instance of an InputSplit subclass appropriate for the given InputFormat. 
 | 
<any> | 
getInternalInputFormat(JobContext context)
Gets an instance of the class set as the internal input format 
 | 
static <K,V> java.lang.Class<? extends <any>> | 
getInternalInputFormatClass(JobContext context)
Gets the internal input format type which is used to actually read the data. 
 | 
static <K,V> RecordInfoProvider<K,V> | 
getRecordInfoProvider(RecordInfoProvider<K,V> provider, JobContext job)
Gets an instance of the specified RecordInfoProvider implementation 
 | 
static <K,V> java.lang.Class<? extends RecordInfoProvider<K,V>> | 
getRecordInfoProviderClass(JobContext job)
Gets the class of the RecordInfoProvider implementation 
 | 
java.util.List<InputSplit> | 
getSplits(JobContext context)  | 
static <K,V> void | 
setInternalInputFormatClass(JobContext job, java.lang.Class<? extends <any>> iInputFormat)
Sets the internal input format type which is used to actually read the data. 
 | 
static <K,V> void | 
setRecordInfoProviderClass(JobContext job, java.lang.Class<? extends RecordInfoProvider<K,V>> provider)
Sets the class of the RecordInfoProvider implementation 
 | 
public static <K,V> <any> createInternalInputFormat(JobContext context)
public static InputSplit getFittingInputSplit(JobContext context,
                                              <any> inputFormat,
                                              InputSplit split)
                                       throws java.io.IOException
context - the job configurationinputFormat - an InputFormat instancesplit - an InputSplit instancejava.io.IOExceptionpublic <any> getInternalInputFormat(JobContext context)
context - the job configurationpublic static <K,V> java.lang.Class<? extends <any>> getInternalInputFormatClass(JobContext context)
context - the job configurationpublic static <K,V> RecordInfoProvider<K,V> getRecordInfoProvider(RecordInfoProvider<K,V> provider, JobContext job)
provider - if null, a new instance will be returned, otherwise, the same instance will be returned. It is used to release the caller from checking if the instance is null.job - the job configurationpublic static <K,V> java.lang.Class<? extends RecordInfoProvider<K,V>> getRecordInfoProviderClass(JobContext job)
job - the job configuration
public java.util.List<InputSplit> getSplits(JobContext context)
                                     throws java.io.IOException
java.io.IOException
public static <K,V> void setInternalInputFormatClass(JobContext job,
                                                     java.lang.Class<? extends <any>> iInputFormat)
job - the job configurationiInputFormat - a class which is a subclass of FileInputFormat or CombineFileInputFormat
public static <K,V> void setRecordInfoProviderClass(JobContext job,
                                                    java.lang.Class<? extends RecordInfoProvider<K,V>> provider)
job - the job configurationprovider - a class that extends from RecordInfoProviderCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.