org.apache.hadoop.mapred
Class MapTask.MapOutputBuffer.MRResultIterator

java.lang.Object
  extended by org.apache.hadoop.mapred.MapTask.MapOutputBuffer.MRResultIterator
All Implemented Interfaces:
RawKeyValueIterator
Enclosing class:
MapTask.MapOutputBuffer<K,V>

protected class MapTask.MapOutputBuffer.MRResultIterator
extends Object
implements RawKeyValueIterator


Constructor Summary
MapTask.MapOutputBuffer.MRResultIterator(int start, int end)
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTask.MapOutputBuffer.MRResultIterator

public MapTask.MapOutputBuffer.MRResultIterator(int start,
                                                int end)
Method Detail

next

public boolean next()
             throws IOException
Description copied from interface: RawKeyValueIterator
Sets up the current key and value (for getKey and getValue).

Specified by:
next in interface RawKeyValueIterator
Returns:
true if there exists a key/value, false otherwise.
Throws:
IOException

getKey

public org.apache.hadoop.io.DataInputBuffer getKey()
                                            throws IOException
Description copied from interface: RawKeyValueIterator
Gets the current raw key.

Specified by:
getKey in interface RawKeyValueIterator
Returns:
Gets the current raw key as a DataInputBuffer
Throws:
IOException

getValue

public org.apache.hadoop.io.DataInputBuffer getValue()
                                              throws IOException
Description copied from interface: RawKeyValueIterator
Gets the current raw value.

Specified by:
getValue in interface RawKeyValueIterator
Returns:
Gets the current raw value as a DataInputBuffer
Throws:
IOException

getProgress

public org.apache.hadoop.util.Progress getProgress()
Description copied from interface: RawKeyValueIterator
Gets the Progress object; this has a float (0.0 - 1.0) indicating the bytes processed by the iterator so far

Specified by:
getProgress in interface RawKeyValueIterator

close

public void close()
Description copied from interface: RawKeyValueIterator
Closes the iterator so that the underlying streams can be closed.

Specified by:
close in interface RawKeyValueIterator


Copyright © 2013 Apache Software Foundation. All Rights Reserved.