public interface InputProtocol
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
InputProtocol.Callback  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
abort()
Transmit inputs to a map or reduce task sub-process. 
 | 
void | 
complete()
Transmit inputs to a map or reduce task sub-process. 
 | 
void | 
configure(TaskType taskType,
         String inSchema,
         String outSchema)
Transmit inputs to a map or reduce task sub-process. 
 | 
void | 
input(ByteBuffer data,
     long count)
Transmit inputs to a map or reduce task sub-process. 
 | 
void | 
partitions(int partitions)
Transmit inputs to a map or reduce task sub-process. 
 | 
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–2019 The Apache Software Foundation. All rights reserved.