public interface InputProtocol
Modifier and Type | Interface and Description |
---|---|
static interface |
InputProtocol.Callback |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Called to abort the task.
|
void |
complete()
Called when a task's input is complete.
|
void |
configure(TaskType taskType,
String inSchema,
String outSchema)
Configure the task.
|
void |
input(ByteBuffer data,
long count)
Send a block of input data to a task.
|
void |
partitions(int partitions)
Set the number of map output partitions.
|
static final Protocol PROTOCOL
void configure(TaskType taskType, String inSchema, String outSchema)
taskType
- Whether this is a map or reduce task.inSchema
- The Avro schema for task input data.outSchema
- The Avro schema for task output data.void partitions(int partitions)
partitions
- The number of map output partitions.void input(ByteBuffer data, long count)
data
- A sequence of instances of the declared schema.count
- The number of instances in this block.void abort()
void complete()
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.