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
Modifier and TypeInterfaceDescriptionstatic interface
Transmit outputs from a map or reduce task to parent. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
Called when a task's output has completed without error.void
configure
(int port) Configure task.void
Increment a task/job counter.void
Called by a failing task to abort.void
output
(ByteBuffer datum) Send an output datum.void
outputPartitioned
(int partition, ByteBuffer datum) Send map output datum explicitly naming its partition.void
Update 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.
-