public abstract class StreamBaseRecordReader extends Object implements RecordReader<Text,Text>
StreamXmlRecordReader| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
StreamBaseRecordReader(FSDataInputStream in,
FileSplit split,
Reporter reporter,
JobConf job,
FileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this to future operations.
|
Text |
createKey() |
Text |
createValue() |
long |
getPos()
Returns the current position in the input.
|
float |
getProgress() |
abstract boolean |
next(Text key,
Text value)
Read a record.
|
abstract void |
seekNextRecordBoundary()
Implementation should seek forward in_ to the first byte of the next record.
|
public StreamBaseRecordReader(FSDataInputStream in, FileSplit split, Reporter reporter, JobConf job, FileSystem fs) throws IOException
IOExceptionpublic abstract boolean next(Text key, Text value) throws IOException
next in interface RecordReader<Text,Text>IOExceptionpublic long getPos()
throws IOException
getPos in interface RecordReader<Text,Text>IOExceptionpublic void close()
throws IOException
close in interface RecordReader<Text,Text>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface RecordReader<Text,Text>IOExceptionpublic Text createKey()
createKey in interface RecordReader<Text,Text>public Text createValue()
createValue in interface RecordReader<Text,Text>public abstract void seekNextRecordBoundary()
throws IOException
IOExceptionCopyright © 2018 CERN. All Rights Reserved.