@Deprecated public class FlatFileInputFormat.FlatFileRecordReader<R> extends Object implements org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>
RecordReader for plain files with Deserializer records
Reads one row at a time of type R. R is intended to be a base class of
something such as: Record, Writable, Text, ...| Modifier and Type | Field and Description |
|---|---|
static String |
SerializationContextImplKey
Deprecated.
The JobConf key of the SerializationContext to use.
|
| Constructor and Description |
|---|
FlatFileInputFormat.FlatFileRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split)
Deprecated.
FlatFileRecordReader constructor constructs the underlying stream
(potentially decompressed) and creates the deserializer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
Void |
createKey()
Deprecated.
|
FlatFileInputFormat.RowContainer<R> |
createValue()
Deprecated.
|
long |
getPos()
Deprecated.
|
float |
getProgress()
Deprecated.
|
boolean |
next(Void key,
FlatFileInputFormat.RowContainer<R> value)
Deprecated.
Returns the next row # and value.
|
public static final String SerializationContextImplKey
public FlatFileInputFormat.FlatFileRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split)
throws IOException
conf - the jobconfsplit - the split for this fileIOExceptionpublic Void createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>public FlatFileInputFormat.RowContainer<R> createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>public boolean next(Void key, FlatFileInputFormat.RowContainer<R> value) throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>key - - void as these files have a value onlyvalue - - the row container which is always re-used, but the internal
value may be set to a new ObjectIOException - from the deserializerpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>IOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>IOExceptionpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<Void,FlatFileInputFormat.RowContainer<R>>IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.