V
- The type of the record valuepublic class KeyPosRecordInfoLoader<V> extends FileSplitRecordInfoLoader<LongWritable,V>
RecordInfoLoader
subclass for InputFormat implementations which Key is the offset start of a record. Such is the case of TextInputFormat.Constructor and Description |
---|
KeyPosRecordInfoLoader(JobConf jobConf) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
RecordInfo |
next() |
void |
startLoading(InputSplit split, Reporter reporter)
Prepares the loader to start reading records from the given split
|
finishLoading, getCurrReader, getKey, getLocationField, getLocationField, getRecordInfoProvider, getValue, remove
public boolean hasNext()
hasNext
in class RecordInfoLoader<LongWritable,V>
public RecordInfo next()
next
in class FileSplitRecordInfoLoader<LongWritable,V>
public void startLoading(InputSplit split, Reporter reporter) throws java.io.IOException
FileSplitRecordInfoLoader
startLoading
in class FileSplitRecordInfoLoader<LongWritable,V>
split
- the split where the data will be read fromreporter
- a reporter instancejava.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.