@InterfaceAudience.Private public class BufferPuller extends Object implements org.apache.hadoop.mapred.RawKeyValueIterator, DataReceiver
BufferPullee
to load data into buffer and receiveModifier 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
IOException
public org.apache.hadoop.io.DataInputBuffer getKey() throws IOException
getKey
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public org.apache.hadoop.io.DataInputBuffer getValue() throws IOException
getValue
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public void reset()
public boolean next() throws IOException
next
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public boolean receiveData() throws IOException
DataReceiver
receiveData
in interface DataReceiver
IOException
public org.apache.hadoop.util.Progress getProgress()
getProgress
in interface org.apache.hadoop.mapred.RawKeyValueIterator
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.