Package org.apache.hadoop.io
Interface SequenceFile.Sorter.RawKeyValueIterator
- Enclosing class:
- SequenceFile.Sorter
public static interface SequenceFile.Sorter.RawKeyValueIterator
The interface to iterate over raw keys/values of SequenceFiles.
-
Method Details
-
getKey
Gets the current raw key.- Returns:
- DataOutputBuffer
- Throws:
IOException- raised on errors performing I/O.
-
getValue
Gets the current raw value.- Returns:
- ValueBytes
- Throws:
IOException- raised on errors performing I/O.
-
next
Sets up the current key and value (for getKey and getValue).- Returns:
- true if there exists a key/value, false otherwise
- Throws:
IOException- raised on errors performing I/O.
-
close
closes the iterator so that the underlying streams can be closed.- Throws:
IOException- raised on errors performing I/O.
-
getProgress
Progress getProgress()- Returns:
- Gets the Progress object; this has a float (0.0 - 1.0) indicating the bytes processed by the iterator so far.
-