protected class DefaultSorter.MRResultIterator extends Object implements TezRawKeyValueIterator
| Constructor and Description |
|---|
MRResultIterator(int start,
int end) |
| 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 |
hasNext()
Returns true if any items are left in the iterator.
|
boolean |
isSameKey()
Whether the current key is same as the previous key
|
boolean |
next()
Sets up the current key and value (for getKey and getValue).
|
public boolean hasNext()
throws IOException
TezRawKeyValueIteratorhasNext in interface TezRawKeyValueIteratortrue if a call to next will succeed
false otherwise.IOExceptionpublic boolean next()
throws IOException
TezRawKeyValueIteratornext in interface TezRawKeyValueIteratortrue if there exists a key/value,
false otherwise.IOExceptionpublic org.apache.hadoop.io.DataInputBuffer getKey()
throws IOException
TezRawKeyValueIteratorgetKey in interface TezRawKeyValueIteratorIOExceptionpublic org.apache.hadoop.io.DataInputBuffer getValue()
throws IOException
TezRawKeyValueIteratorgetValue in interface TezRawKeyValueIteratorIOExceptionpublic org.apache.hadoop.util.Progress getProgress()
TezRawKeyValueIteratorgetProgress in interface TezRawKeyValueIteratorpublic boolean isSameKey()
throws IOException
TezRawKeyValueIteratorisSameKey in interface TezRawKeyValueIteratorIOExceptionpublic void close()
TezRawKeyValueIteratorclose in interface TezRawKeyValueIteratorCopyright © 2019 Apache Software Foundation. All rights reserved.