public class TaskOutput extends MapOutputBuffer
| Constructor and Description |
|---|
TaskOutput(JobConf conf,
int reduceNum) |
TaskOutput(JobConf job,
Pipeline pipeline,
String taskId,
int reduceCopyNum) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Record key,
Record value) |
void |
add(Record key,
Record value,
int partition) |
void |
add(Record record,
String label) |
com.aliyun.odps.counter.Counters |
getCounters()
获取作业
Counters. |
List<KeyValue<Record,Record>> |
getOutputKeyValues()
|
List<KeyValue<Record,Record>> |
getOutputKeyValues(int reduceId)
返回
Mapper 输出到给定 reduceId 的键值对列表. |
List<Record> |
getOutputRecords()
获取默认输出结果,返回 List<
Record>. |
List<Record> |
getOutputRecords(boolean sort)
获取默认输出结果,返回 List<
Record>. |
List<Record> |
getOutputRecords(String label)
获取给定标签的输出结果,返回 List<
Record>. |
List<Record> |
getOutputRecords(String label,
boolean sort)
获取给定标签的输出结果,返回 List<
Record>. |
long |
getTotalRecordCount() |
getComparator, getPartitionQueuepublic TaskOutput(JobConf conf, int reduceNum)
public List<KeyValue<Record,Record>> getOutputKeyValues(int reduceId)
Mapper 输出到给定 reduceId 的键值对列表.reduceId - Reducer 序号,从 0 开始计数。public List<Record> getOutputRecords(String label)
Record>.label - 输出标签public List<Record> getOutputRecords(boolean sort)
Record>.public List<Record> getOutputRecords(String label, boolean sort)
Record>.label - 输出标签public com.aliyun.odps.counter.Counters getCounters()
Counters.Counters.public void add(Record key, Record value)
add in class MapOutputBufferpublic void add(Record key, Record value, int partition)
add in class MapOutputBufferpublic void add(Record record, String label)
add in class MapOutputBufferpublic long getTotalRecordCount()
getTotalRecordCount in class MapOutputBufferCopyright © 2020 Alibaba Cloud Computing. All rights reserved.