|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase<K1,V1>
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner<K1,V1>
ValueAggregatorCombiner
instead
@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public class ValueAggregatorCombiner<K1 extends org.apache.hadoop.io.WritableComparable,V1 extends org.apache.hadoop.io.Writable>
This class implements the generic combiner of Aggregate.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase |
---|
aggregatorDescriptorList |
Constructor Summary | |
---|---|
ValueAggregatorCombiner()
Deprecated. |
Method Summary | |
---|---|
void |
close()
Deprecated. Do nothing. |
void |
configure(JobConf job)
Deprecated. Combiner does not need to configure. |
void |
map(K1 arg0,
V1 arg1,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg2,
Reporter arg3)
Deprecated. Do nothing. |
void |
reduce(org.apache.hadoop.io.Text key,
Iterator<org.apache.hadoop.io.Text> values,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> output,
Reporter reporter)
Deprecated. Combines values for a given key. |
Methods inherited from class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase |
---|
logSpec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueAggregatorCombiner()
Method Detail |
---|
public void configure(JobConf job)
configure
in interface JobConfigurable
configure
in class ValueAggregatorJobBase<K1 extends org.apache.hadoop.io.WritableComparable,V1 extends org.apache.hadoop.io.Writable>
job
- the configurationpublic void reduce(org.apache.hadoop.io.Text key, Iterator<org.apache.hadoop.io.Text> values, OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.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
in interface Closeable
close
in class ValueAggregatorJobBase<K1 extends org.apache.hadoop.io.WritableComparable,V1 extends org.apache.hadoop.io.Writable>
IOException
public void map(K1 arg0, V1 arg1, OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |