A
- Aggregated valuepublic abstract class BasicAggregator<A extends org.apache.hadoop.io.Writable> extends Object implements Aggregator<A>
Aggregator
.
Implements get value, set value and reset methods and has internal value
object.Constructor and Description |
---|
BasicAggregator()
Default constructor.
|
BasicAggregator(A initialValue)
Constructor
|
Modifier and Type | Method and Description |
---|---|
A |
getAggregatedValue()
Return current aggregated value.
|
void |
reset()
Reset the value of aggregator to neutral value
|
void |
setAggregatedValue(A value)
Set aggregated value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, createInitialValue
public BasicAggregator()
public BasicAggregator(A initialValue)
initialValue
- initial valuepublic A getAggregatedValue()
Aggregator
getAggregatedValue
in interface Aggregator<A extends org.apache.hadoop.io.Writable>
public void setAggregatedValue(A value)
Aggregator
setAggregatedValue
in interface Aggregator<A extends org.apache.hadoop.io.Writable>
value
- Value to be set.public void reset()
Aggregator
reset
in interface Aggregator<A extends org.apache.hadoop.io.Writable>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.