DataReceiver, org.apache.hadoop.mapred.RawKeyValueIterator@Private public class BufferPuller extends java.lang.Object implements org.apache.hadoop.mapred.RawKeyValueIterator, DataReceiver
BufferPullee to load data into buffer and receive| Modifier and Type | Field | Description |
|---|---|---|
static int |
KV_HEADER_LENGTH |
| Constructor | Description |
|---|---|
BufferPuller(NativeDataSource handler) |
| Modifier and Type | Method | 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 java.io.IOException
java.io.IOExceptionpublic org.apache.hadoop.io.DataInputBuffer getKey()
throws java.io.IOException
getKey in interface org.apache.hadoop.mapred.RawKeyValueIteratorjava.io.IOExceptionpublic org.apache.hadoop.io.DataInputBuffer getValue()
throws java.io.IOException
getValue in interface org.apache.hadoop.mapred.RawKeyValueIteratorjava.io.IOExceptionpublic void reset()
public boolean next()
throws java.io.IOException
next in interface org.apache.hadoop.mapred.RawKeyValueIteratorjava.io.IOExceptionpublic boolean receiveData()
throws java.io.IOException
DataReceiverreceiveData in interface DataReceiverjava.io.IOExceptionpublic org.apache.hadoop.util.Progress getProgress()
getProgress in interface org.apache.hadoop.mapred.RawKeyValueIteratorpublic void close()
throws java.io.IOException
close in interface org.apache.hadoop.mapred.RawKeyValueIteratorjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.