@InterfaceAudience.Public @InterfaceStability.Stable public class KeyValueLineRecordReader extends RecordReader<Text,Text>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
KEY_VALUE_SEPERATOR |
| コンストラクタと説明 |
|---|
KeyValueLineRecordReader(Configuration conf) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
Close the record reader.
|
static int |
findSeparator(byte[] utf,
int start,
int length,
byte sep) |
Text |
getCurrentKey()
Get the current key
|
Text |
getCurrentValue()
Get the current value.
|
Class |
getKeyClass() |
float |
getProgress()
The current progress of the record reader through its data.
|
void |
initialize(InputSplit genericSplit,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read key/value pair in a line.
|
static void |
setKeyValue(Text key,
Text value,
byte[] line,
int lineLen,
int pos) |
public static final String KEY_VALUE_SEPERATOR
public KeyValueLineRecordReader(Configuration conf) throws IOException
IOExceptionpublic Class getKeyClass()
public void initialize(InputSplit genericSplit, TaskAttemptContext context) throws IOException
RecordReaderinitialize クラス内 RecordReader<Text,Text>genericSplit - the split that defines the range of records to readcontext - the information about the taskIOExceptionpublic static int findSeparator(byte[] utf, int start, int length, byte sep)
public static void setKeyValue(Text key, Text value, byte[] line, int lineLen, int pos)
public boolean nextKeyValue() throws IOException
nextKeyValue クラス内 RecordReader<Text,Text>IOExceptionpublic Text getCurrentKey()
RecordReadergetCurrentKey クラス内 RecordReader<Text,Text>public Text getCurrentValue()
RecordReadergetCurrentValue クラス内 RecordReader<Text,Text>public float getProgress() throws IOException
RecordReadergetProgress クラス内 RecordReader<Text,Text>IOExceptionpublic void close() throws IOException
RecordReaderclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 RecordReader<Text,Text>IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.