public class StreamXmlRecordReader extends StreamBaseRecordReader
LOG| Constructor and Description |
|---|
StreamXmlRecordReader(org.apache.hadoop.fs.FSDataInputStream in,
FileSplit split,
Reporter reporter,
JobConf job,
org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
boolean |
next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
Read a record.
|
void |
seekNextRecordBoundary()
Implementation should seek forward in_ to the first byte of the next record.
|
close, createKey, createValue, getPos, getProgresspublic void init()
throws java.io.IOException
java.io.IOExceptionpublic boolean next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
throws java.io.IOException
StreamBaseRecordReadernext in interface RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>next in class StreamBaseRecordReaderkey - the key to read data intovalue - the value to read data intojava.io.IOExceptionpublic void seekNextRecordBoundary()
throws java.io.IOException
StreamBaseRecordReaderseekNextRecordBoundary in class StreamBaseRecordReaderjava.io.IOExceptionCopyright © 2009 The Apache Software Foundation