public class StreamXmlRecordReader extends StreamBaseRecordReader
LOG| Constructor and Description |
|---|
StreamXmlRecordReader(org.apache.hadoop.fs.FSDataInputStream in,
org.apache.hadoop.mapreduce.lib.input.FileSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.Text |
getCurrentKey() |
org.apache.hadoop.io.Text |
getCurrentValue() |
void |
init() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit arg0,
org.apache.hadoop.mapreduce.TaskAttemptContext arg1) |
boolean |
next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
Read a record.
|
boolean |
nextKeyValue() |
void |
seekNextRecordBoundary()
Implementation should seek forward in_ to the first byte of the next
record.
|
close, createKey, createValue, getPos, getProgresspublic StreamXmlRecordReader(org.apache.hadoop.fs.FSDataInputStream in,
org.apache.hadoop.mapreduce.lib.input.FileSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs)
throws IOException
IOExceptionpublic final void init()
throws IOException
IOExceptionpublic boolean next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
throws IOException
StreamBaseRecordReadernext in class StreamBaseRecordReaderIOExceptionpublic void seekNextRecordBoundary()
throws IOException
StreamBaseRecordReaderseekNextRecordBoundary in class StreamBaseRecordReaderIOExceptionpublic org.apache.hadoop.io.Text getCurrentKey()
throws IOException,
InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.Text getCurrentValue()
throws IOException,
InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit arg0,
org.apache.hadoop.mapreduce.TaskAttemptContext arg1)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.