public class ValueAggregatorBaseDescriptor extends Object implements ValueAggregatorDescriptor
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DOUBLE_VALUE_SUM |
String |
inputFile |
static String |
LONG_VALUE_MAX |
static String |
LONG_VALUE_MIN |
static String |
LONG_VALUE_SUM |
static String |
STRING_VALUE_MAX |
static String |
STRING_VALUE_MIN |
static String |
UNIQ_VALUE_COUNT |
static String |
VALUE_HISTOGRAM |
ONE, TYPE_SEPARATOR| 构造器和说明 |
|---|
ValueAggregatorBaseDescriptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(JobConf job)
get the input file name.
|
static Map.Entry<Text,Text> |
generateEntry(String type,
String id,
Text val) |
ArrayList<Map.Entry<Text,Text>> |
generateKeyValPairs(Object key,
Object val)
Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
|
static ValueAggregator |
generateValueAggregator(String type) |
public String inputFile
public static Map.Entry<Text,Text> generateEntry(String type, String id, Text val)
type - the aggregation typeid - the aggregation idval - the val associated with the id to be aggregatedpublic static ValueAggregator generateValueAggregator(String type)
type - the aggregation typepublic ArrayList<Map.Entry<Text,Text>> generateKeyValPairs(Object key, Object val)
generateKeyValPairs 在接口中 ValueAggregatorDescriptorkey - input keyval - input valuepublic void configure(JobConf job)
configure 在接口中 ValueAggregatorDescriptorjob - a job configuration objectCopyright © 2009 The Apache Software Foundation