LineRecordReader
instead.@Deprecated public class LineRecordReader extends Object implements RecordReader<LongWritable,Text>
Modifier and Type | Class and Description |
---|---|
static class |
LineRecordReader.LineReader
Deprecated.
Use
LineReader instead. |
Constructor and Description |
---|
LineRecordReader(Configuration job,
FileSplit split)
Deprecated.
|
LineRecordReader(InputStream in,
long offset,
long endOffset,
Configuration job)
Deprecated.
|
LineRecordReader(InputStream in,
long offset,
long endOffset,
int maxLineLength)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close this
InputSplit to future operations. |
LongWritable |
createKey()
Deprecated.
Create an object of the appropriate type to be used as a key.
|
Text |
createValue()
Deprecated.
Create an object of the appropriate type to be used as a value.
|
long |
getPos()
Deprecated.
Returns the current position in the input.
|
float |
getProgress()
Deprecated.
Get the progress within the split
|
boolean |
next(LongWritable key,
Text value)
Deprecated.
Read a line.
|
public LineRecordReader(Configuration job, FileSplit split) throws IOException
IOException
public LineRecordReader(InputStream in, long offset, long endOffset, int maxLineLength)
public LineRecordReader(InputStream in, long offset, long endOffset, Configuration job) throws IOException
IOException
public LongWritable createKey()
RecordReader
createKey
in interface RecordReader<LongWritable,Text>
public Text createValue()
RecordReader
createValue
in interface RecordReader<LongWritable,Text>
public boolean next(LongWritable key, Text value) throws IOException
next
in interface RecordReader<LongWritable,Text>
key
- the key to read data intovalue
- the value to read data intoIOException
public float getProgress()
getProgress
in interface RecordReader<LongWritable,Text>
0.0
to 1.0
.public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader<LongWritable,Text>
IOException
public void close() throws IOException
RecordReader
InputSplit
to future operations.close
in interface RecordReader<LongWritable,Text>
IOException
Copyright © 2010 The Apache Software Foundation