V
- the type of the record valuepublic class KeyPosSubSplitRecordReader<V> extends SubSplitRecordReader<LongWritable,V>
SubSplitRecordReader
subclass used to read records for internal InputFormats which Key is the start offset of a record.MIN_SUBSPLIT_DISTANCE
Constructor and Description |
---|
KeyPosSubSplitRecordReader(java.util.List<FileSplit> subSplits, <any> internalInputFormat, JobConf conf, Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
long |
getPos() |
boolean |
next(LongWritable key, V value) |
close, createKey, createValue, getProgress
public KeyPosSubSplitRecordReader(java.util.List<FileSplit> subSplits, <any> internalInputFormat, JobConf conf, Reporter reporter) throws java.io.IOException
java.io.IOException
public long getPos() throws java.io.IOException
getPos
in class SubSplitRecordReader<LongWritable,V>
java.io.IOException
public boolean next(LongWritable key, V value) throws java.io.IOException
next
in class SubSplitRecordReader<LongWritable,V>
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.