|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.SequenceFileRecordReader<K,V>
public class SequenceFileRecordReader<K extends WritableComparable,V extends Writable>
An RecordReader
for SequenceFile
s.
Field Summary | |
---|---|
protected Configuration |
conf
|
Constructor Summary | |
---|---|
SequenceFileRecordReader(Configuration conf,
FileSplit split)
|
Method Summary | |
---|---|
void |
close()
Close this InputSplit to future operations. |
K |
createKey()
Create an object of the appropriate type to be used as a key. |
V |
createValue()
Create an object of the appropriate type to be used as a value. |
protected void |
getCurrentValue(V value)
|
Class |
getKeyClass()
The class of key that must be passed to next(WritableComparable,Writable) .. |
long |
getPos()
Returns the current position in the input. |
float |
getProgress()
Return the progress within the input split |
Class |
getValueClass()
The class of value that must be passed to next(WritableComparable,Writable) .. |
protected boolean |
next(K key)
|
boolean |
next(K key,
V value)
Reads the next key/value pair from the input for processing. |
protected void |
seek(long pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Configuration conf
Constructor Detail |
---|
public SequenceFileRecordReader(Configuration conf, FileSplit split) throws IOException
IOException
Method Detail |
---|
public Class getKeyClass()
next(WritableComparable,Writable)
..
public Class getValueClass()
next(WritableComparable,Writable)
..
public K createKey()
RecordReader
createKey
in interface RecordReader<K extends WritableComparable,V extends Writable>
public V createValue()
RecordReader
createValue
in interface RecordReader<K extends WritableComparable,V extends Writable>
public boolean next(K key, V value) throws IOException
RecordReader
next
in interface RecordReader<K extends WritableComparable,V extends Writable>
key
- the key to read data intovalue
- the value to read data into
IOException
Writable.readFields(DataInput)
protected boolean next(K key) throws IOException
IOException
protected void getCurrentValue(V value) throws IOException
IOException
public float getProgress() throws IOException
getProgress
in interface RecordReader<K extends WritableComparable,V extends Writable>
IOException
public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader<K extends WritableComparable,V extends Writable>
IOException
protected void seek(long pos) throws IOException
IOException
public void close() throws IOException
RecordReader
InputSplit
to future operations.
close
in interface RecordReader<K extends WritableComparable,V extends Writable>
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |