@InterfaceAudience.Public @InterfaceStability.Stable public class KeyValueLineRecordReader extends Object implements RecordReader<Text,Text>
| コンストラクタと説明 | 
|---|
| KeyValueLineRecordReader(Configuration job,
                        FileSplit split) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | close()Close this  InputSplitto future operations. | 
| Text | createKey()Create an object of the appropriate type to be used as a key. | 
| Text | createValue()Create an object of the appropriate type to be used as a value. | 
| static int | findSeparator(byte[] utf,
             int start,
             int length,
             byte sep) | 
| Class | getKeyClass() | 
| long | getPos()Returns the current position in the input. | 
| float | getProgress()How much of the input has the  RecordReaderconsumed i.e. | 
| boolean | next(Text key,
    Text value)Read key/value pair in a line. | 
public KeyValueLineRecordReader(Configuration job, FileSplit split) throws IOException
IOExceptionpublic Class getKeyClass()
public Text createKey()
RecordReadercreateKey インタフェース内 RecordReader<Text,Text>public Text createValue()
RecordReadercreateValue インタフェース内 RecordReader<Text,Text>public static int findSeparator(byte[] utf, int start, int length, byte sep)
public boolean next(Text key, Text value) throws IOException
next インタフェース内 RecordReader<Text,Text>key - the key to read data intovalue - the value to read data intoIOExceptionpublic float getProgress() throws IOException
RecordReaderRecordReader consumed i.e.
 has been processed by?getProgress インタフェース内 RecordReader<Text,Text>0.0 to 1.0.IOExceptionpublic long getPos() throws IOException
RecordReadergetPos インタフェース内 RecordReader<Text,Text>IOExceptionpublic void close() throws IOException
RecordReaderInputSplit to future operations.close インタフェース内 RecordReader<Text,Text>IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.