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()
Transmit outputs from a map or reduce task to parent.
|
void |
configure(int port)
Transmit outputs from a map or reduce task to parent.
|
void |
count(String group,
String name,
long amount)
Transmit outputs from a map or reduce task to parent.
|
void |
fail(String message)
Transmit outputs from a map or reduce task to parent.
|
void |
output(ByteBuffer datum)
Transmit outputs from a map or reduce task to parent.
|
void |
outputPartitioned(int partition,
ByteBuffer datum)
Transmit outputs from a map or reduce task to parent.
|
void |
status(String message)
Transmit outputs from a map or reduce task to parent.
|
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–2021 The Apache Software Foundation. All rights reserved.