public class ValueAggregatorCombiner<K1 extends WritableComparable,V1 extends Writable> extends ValueAggregatorJobBase<K1,V1>
aggregatorDescriptorList
构造器和说明 |
---|
ValueAggregatorCombiner() |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Do nothing.
|
void |
configure(JobConf job)
Combiner does not need to configure.
|
void |
map(K1 arg0,
V1 arg1,
OutputCollector<Text,Text> arg2,
Reporter arg3)
Do nothing.
|
void |
reduce(Text key,
Iterator<Text> values,
OutputCollector<Text,Text> output,
Reporter reporter)
Combines values for a given key.
|
logSpec
public void configure(JobConf job)
configure
在接口中 JobConfigurable
configure
在类中 ValueAggregatorJobBase<K1 extends WritableComparable,V1 extends Writable>
job
- the configurationpublic void reduce(Text key, Iterator<Text> values, OutputCollector<Text,Text> output, Reporter reporter) throws IOException
key
- the key is expected to be a Text object, whose prefix indicates
the type of aggregation to aggregate the values.values
- the values to combineoutput
- to collect combined valuesreporter
- facility to report progress.IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 ValueAggregatorJobBase<K1 extends WritableComparable,V1 extends Writable>
IOException
public void map(K1 arg0, V1 arg1, OutputCollector<Text,Text> arg2, Reporter arg3) throws IOException
arg0
- the input key.arg1
- the input value.arg2
- collects mapped keys and values.arg3
- facility to report progress.IOException
Copyright © 2009 The Apache Software Foundation