INativeHandler, NativeDataSource, NativeDataTarget@Private public class NativeBatchProcessor extends java.lang.Object implements INativeHandler
| Modifier | Constructor | Description |
|---|---|---|
protected |
NativeBatchProcessor(java.lang.String nativeHandlerName,
InputBuffer input,
OutputBuffer output) |
| Modifier and Type | Method | Description |
|---|---|---|
ReadWriteBuffer |
call(Command command,
ReadWriteBuffer parameter) |
call command to downstream
|
void |
close() |
close the native handler
|
static INativeHandler |
create(java.lang.String nativeHandlerName,
org.apache.hadoop.conf.Configuration conf,
DataChannel channel) |
|
protected void |
finishOutput() |
|
void |
finishSendData() |
Sends a signal that there is no more data
|
InputBuffer |
getInputBuffer() |
get input buffer
|
long |
getNativeHandler() |
|
OutputBuffer |
getOutputBuffer() |
Gets the output buffer.
|
void |
init(org.apache.hadoop.conf.Configuration conf) |
init the native handler
|
void |
loadData() |
load data from upstream
|
java.lang.String |
name() |
|
void |
sendData() |
Sends a signal to indicate that the data has been stored in output buffer
|
void |
setCommandDispatcher(CommandDispatcher handler) |
|
void |
setDataReceiver(DataReceiver handler) |
set listener.
|
protected NativeBatchProcessor(java.lang.String nativeHandlerName,
InputBuffer input,
OutputBuffer output)
throws java.io.IOException
java.io.IOExceptionpublic static INativeHandler create(java.lang.String nativeHandlerName, org.apache.hadoop.conf.Configuration conf, DataChannel channel) throws java.io.IOException
java.io.IOExceptionpublic void setCommandDispatcher(CommandDispatcher handler)
setCommandDispatcher in interface INativeHandlerpublic void init(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
INativeHandlerinit in interface INativeHandlerjava.io.IOExceptionpublic void close()
throws java.io.IOException
INativeHandlerclose in interface INativeHandlerjava.io.IOExceptionpublic long getNativeHandler()
getNativeHandler in interface INativeHandlerpublic ReadWriteBuffer call(Command command, ReadWriteBuffer parameter) throws java.io.IOException
INativeHandlercall in interface INativeHandlerjava.io.IOExceptionpublic void sendData()
throws java.io.IOException
NativeDataTargetsendData in interface NativeDataTargetjava.io.IOExceptionpublic void finishSendData()
throws java.io.IOException
NativeDataTargetfinishSendData in interface NativeDataTargetjava.io.IOExceptionprotected void finishOutput()
public InputBuffer getInputBuffer()
NativeDataSourcegetInputBuffer in interface NativeDataSourcepublic OutputBuffer getOutputBuffer()
NativeDataTargetgetOutputBuffer in interface NativeDataTargetpublic void loadData()
throws java.io.IOException
NativeDataSourceloadData in interface NativeDataSourcejava.io.IOExceptionpublic void setDataReceiver(DataReceiver handler)
NativeDataSourcesetDataReceiver in interface NativeDataSourcepublic java.lang.String name()
name in interface INativeHandlerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.