Interface INativeHandler
- All Superinterfaces:
NativeDataSource,NativeDataTarget
- All Known Implementing Classes:
NativeBatchProcessor
A Handler accept input, and give output can be used to transfer command and data
-
Method Summary
Modifier and TypeMethodDescriptioncall(Command command, ReadWriteBuffer parameter) call command to downstreamvoidclose()close the native handlerlongvoidinit(org.apache.hadoop.conf.Configuration conf) init the native handlername()voidsetCommandDispatcher(CommandDispatcher handler) Methods inherited from interface org.apache.hadoop.mapred.nativetask.NativeDataSource
getInputBuffer, loadData, setDataReceiverMethods inherited from interface org.apache.hadoop.mapred.nativetask.NativeDataTarget
finishSendData, getOutputBuffer, sendData
-
Method Details
-
name
String name() -
getNativeHandler
long getNativeHandler() -
init
init the native handler- Throws:
IOException
-
close
close the native handler- Throws:
IOException
-
call
call command to downstream- Throws:
IOException
-
setCommandDispatcher
-