@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileRecordReader<K,V> extends RecordReader<K,V>
RecordReader for SequenceFiles.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Configuration |
conf |
| コンストラクタと説明 |
|---|
SequenceFileRecordReader() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
Close the record reader.
|
K |
getCurrentKey()
Get the current key
|
V |
getCurrentValue()
Get the current value.
|
float |
getProgress()
Return the progress within the input split
|
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read the next key, value pair.
|
protected Configuration conf
public SequenceFileRecordReader()
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize クラス内 RecordReader<K,V>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic boolean nextKeyValue() throws IOException, InterruptedException
RecordReadernextKeyValue クラス内 RecordReader<K,V>IOExceptionInterruptedExceptionpublic K getCurrentKey()
RecordReadergetCurrentKey クラス内 RecordReader<K,V>public V getCurrentValue()
RecordReadergetCurrentValue クラス内 RecordReader<K,V>public float getProgress() throws IOException
getProgress クラス内 RecordReader<K,V>IOExceptionpublic void close() throws IOException
RecordReaderclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 RecordReader<K,V>IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.