Package org.apache.avro.mapred.tether
Interface OutputProtocol
- All Known Subinterfaces:
OutputProtocol.Callback
public interface OutputProtocol
Transmit outputs from a map or reduce task to parent.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTransmit outputs from a map or reduce task to parent. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Called when a task's output has completed without error.voidconfigure(int port) Configure task.voidIncrement a task/job counter.voidCalled by a failing task to abort.voidoutput(ByteBuffer datum) Send an output datum.voidoutputPartitioned(int partition, ByteBuffer datum) Send map output datum explicitly naming its partition.voidUpdate the task's status message.
-
Field Details
-
PROTOCOL
-
-
Method Details
-
configure
void configure(int port) Configure task. Sent before any other message.- Parameters:
port- The port to transmit inputs to this task on.
-
output
Send an output datum.- Parameters:
datum- A binary-encoded instance of the declared schema.
-
outputPartitioned
Send map output datum explicitly naming its partition.- Parameters:
partition- The map output partition for this datum.datum- A binary-encoded instance of the declared schema.
-
status
Update the task's status message. Also acts as keepalive.- Parameters:
message- The new status message for the task.
-
count
Increment a task/job counter.- Parameters:
group- The name of the counter group.name- The name of the counter to increment.amount- The amount to incrment the counter.
-
fail
Called by a failing task to abort.- Parameters:
message- The new status message for the task.
-
complete
void complete()Called when a task's output has completed without error.
-