public abstract class StreamBaseRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
StreamXmlRecordReader| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
StreamBaseRecordReader(org.apache.hadoop.fs.FSDataInputStream in,
org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.Reporter reporter,
org.apache.hadoop.mapred.JobConf job,
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.mapred.FileSplit split,
org.apache.hadoop.mapred.Reporter reporter,
org.apache.hadoop.mapred.JobConf job,
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
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionpublic org.apache.hadoop.io.Text createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>public org.apache.hadoop.io.Text createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>public abstract void seekNextRecordBoundary()
throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.