|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jagg.Aggregator
net.sf.jagg.MinAggregator
public class MinAggregator
This class represents the "min" aggregator over Comparable
values.
| Field Summary |
|---|
| Fields inherited from class net.sf.jagg.Aggregator |
|---|
PROP_SELF |
| Constructor Summary | |
|---|---|
MinAggregator(java.lang.String property)
Constructs a MinAggregator that operates on the specified
property. |
|
| Method Summary | |
|---|---|
void |
init()
Initialize the minimum to null. |
void |
iterate(java.lang.Object value)
Store the property value if it's lower than the current minimum. |
void |
merge(Aggregator agg)
Merge the given Aggregator into this one by taking the
minimum of the two minimums. |
MinAggregator |
replicate()
Returns an uninitialized copy of this Aggregator object,
with the same property(ies) to analyze. |
java.lang.Comparable |
terminate()
Return the minimum. |
| Methods inherited from class net.sf.jagg.Aggregator |
|---|
equals, getAggregator, getAggregator, getProperty, getValueFromProperty, hashCode, isInUse, setInUse, setProperty, terminateDoubleDouble, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MinAggregator(java.lang.String property)
MinAggregator that operates on the specified
property.
property - Determine the minimum of this property's values.| Method Detail |
|---|
public MinAggregator replicate()
Aggregator object,
with the same property(ies) to analyze.
replicate in class AggregatorAggregator object.public void init()
null.
init in class Aggregatorpublic void iterate(java.lang.Object value)
iterate in class Aggregatorvalue - The value to aggregate.Aggregator.getValueFromProperty(java.lang.Object, java.lang.String)public void merge(Aggregator agg)
Aggregator into this one by taking the
minimum of the two minimums.
merge in class Aggregatoragg - The Aggregator to merge into this one.public java.lang.Comparable terminate()
terminate in class AggregatorComparable, or null if
no values were processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||