@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface RawKeyValueIterator
RawKeyValueIterator is an iterator used to iterate over
the raw keys and values during sort/merge of intermediate data.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator so that the underlying streams can be closed.
|
org.apache.hadoop.io.DataInputBuffer |
getKey()
Gets the current raw key.
|
org.apache.hadoop.util.Progress |
getProgress()
Gets the Progress object; this has a float (0.0 - 1.0)
indicating the bytes processed by the iterator so far
|
org.apache.hadoop.io.DataInputBuffer |
getValue()
Gets the current raw value.
|
boolean |
next()
Sets up the current key and value (for getKey and getValue).
|
org.apache.hadoop.io.DataInputBuffer getKey()
throws IOException
IOExceptionorg.apache.hadoop.io.DataInputBuffer getValue()
throws IOException
IOExceptionboolean next()
throws IOException
true if there exists a key/value,
false otherwise.IOExceptionvoid close()
throws IOException
IOExceptionorg.apache.hadoop.util.Progress getProgress()
Copyright © 2022 Apache Software Foundation. All rights reserved.