public abstract class StreamBaseRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
StreamXmlRecordReader| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
StreamBaseRecordReader(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 |
|---|---|
void |
close()
Close this to future operations.
|
org.apache.hadoop.io.Text |
createKey() |
org.apache.hadoop.io.Text |
createValue() |
long |
getPos()
Returns the current position in the input.
|
float |
getProgress() |
abstract boolean |
next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
Read a record.
|
abstract void |
seekNextRecordBoundary()
Implementation should seek forward in_ to the first byte of the next
record.
|
public StreamBaseRecordReader(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 abstract boolean next(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.Text value)
throws IOException
IOExceptionpublic long getPos()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic float getProgress()
throws IOException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic org.apache.hadoop.io.Text createKey()
public org.apache.hadoop.io.Text createValue()
public abstract void seekNextRecordBoundary()
throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.