@InterfaceAudience.Private public class BufferPuller extends Object implements org.apache.hadoop.mapred.RawKeyValueIterator, DataReceiver
BufferPullee to load data into buffer and receive| Modifier and Type | Field and Description |
|---|---|
static int |
KV_HEADER_LENGTH |
| Constructor and Description |
|---|
BufferPuller(NativeDataSource handler) |
| 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() |
org.apache.hadoop.util.Progress |
getProgress() |
org.apache.hadoop.io.DataInputBuffer |
getValue() |
boolean |
next() |
boolean |
receiveData()
Send a signal to the receiver that the data arrives.
|
void |
reset() |
public static final int KV_HEADER_LENGTH
public BufferPuller(NativeDataSource handler) throws IOException
IOExceptionpublic org.apache.hadoop.io.DataInputBuffer getKey()
throws IOException
getKey in interface org.apache.hadoop.mapred.RawKeyValueIteratorIOExceptionpublic org.apache.hadoop.io.DataInputBuffer getValue()
throws IOException
getValue in interface org.apache.hadoop.mapred.RawKeyValueIteratorIOExceptionpublic void reset()
public boolean next()
throws IOException
next in interface org.apache.hadoop.mapred.RawKeyValueIteratorIOExceptionpublic boolean receiveData()
throws IOException
DataReceiverreceiveData in interface DataReceiverIOExceptionpublic org.apache.hadoop.util.Progress getProgress()
getProgress in interface org.apache.hadoop.mapred.RawKeyValueIteratorpublic void close()
throws IOException
close in interface org.apache.hadoop.mapred.RawKeyValueIteratorIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.