public interface OutputProtocol
Modifier and Type | Interface and Description |
---|---|
static interface |
OutputProtocol.Callback
Transmit outputs from a map or reduce task to parent.
|
Modifier and Type | Method and Description |
---|---|
void |
complete()
Called when a task's output has completed without error.
|
void |
configure(int port)
Configure task.
|
void |
count(String group,
String name,
long amount)
Increment a task/job counter.
|
void |
fail(String message)
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 |
status(String message)
Update the task's status message.
|
static final Protocol PROTOCOL
void configure(int port)
port
- The port to transmit inputs to this task on.void output(ByteBuffer datum)
datum
- A binary-encoded instance of the declared schema.void outputPartitioned(int partition, ByteBuffer datum)
partition
- The map output partition for this datum.datum
- A binary-encoded instance of the declared schema.void status(String message)
message
- The new status message for the task.void count(String group, String name, long amount)
group
- The name of the counter group.name
- The name of the counter to increment.amount
- The amount to incrment the counter.void fail(String message)
message
- The new status message for the task.void complete()
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.