protected class DefaultSorter.MRResultIterator extends Object implements TezRawKeyValueIterator
Constructor and Description |
---|
DefaultSorter.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 |
next()
Sets up the current key and value (for getKey and getValue).
|
public DefaultSorter.MRResultIterator(int start, int end)
public boolean next() throws IOException
TezRawKeyValueIterator
next
in interface TezRawKeyValueIterator
true
if there exists a key/value,
false
otherwise.IOException
public org.apache.hadoop.io.DataInputBuffer getKey() throws IOException
TezRawKeyValueIterator
getKey
in interface TezRawKeyValueIterator
IOException
public org.apache.hadoop.io.DataInputBuffer getValue() throws IOException
TezRawKeyValueIterator
getValue
in interface TezRawKeyValueIterator
IOException
public org.apache.hadoop.util.Progress getProgress()
TezRawKeyValueIterator
getProgress
in interface TezRawKeyValueIterator
public void close()
TezRawKeyValueIterator
close
in interface TezRawKeyValueIterator
Copyright © 2015 Apache Software Foundation. All rights reserved.