Class BufferPuller
java.lang.Object
org.apache.hadoop.mapred.nativetask.handlers.BufferPuller
- All Implemented Interfaces:
DataReceiver,org.apache.hadoop.mapred.RawKeyValueIterator
@Private
public class BufferPuller
extends Object
implements org.apache.hadoop.mapred.RawKeyValueIterator, DataReceiver
actively signal a
BufferPullee to load data into buffer and receive-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the iterator so that the underlying streams can be closed.org.apache.hadoop.io.DataInputBuffergetKey()org.apache.hadoop.util.Progressorg.apache.hadoop.io.DataInputBuffergetValue()booleannext()booleanSend a signal to the receiver that the data arrives.voidreset()
-
Field Details
-
KV_HEADER_LENGTH
public static final int KV_HEADER_LENGTH- See Also:
-
-
Constructor Details
-
BufferPuller
- Throws:
IOException
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceorg.apache.hadoop.mapred.RawKeyValueIterator- Throws:
IOException
-
getValue
- Specified by:
getValuein interfaceorg.apache.hadoop.mapred.RawKeyValueIterator- Throws:
IOException
-
reset
public void reset() -
next
- Specified by:
nextin interfaceorg.apache.hadoop.mapred.RawKeyValueIterator- Throws:
IOException
-
receiveData
Description copied from interface:DataReceiverSend a signal to the receiver that the data arrives. The data is transferred in another band.- Specified by:
receiveDatain interfaceDataReceiver- Throws:
IOException
-
getProgress
public org.apache.hadoop.util.Progress getProgress()- Specified by:
getProgressin interfaceorg.apache.hadoop.mapred.RawKeyValueIterator
-
close
Closes the iterator so that the underlying streams can be closed.- Specified by:
closein interfaceorg.apache.hadoop.mapred.RawKeyValueIterator- Throws:
IOException
-