Package org.openjdk.jmc.common.item
Class Aggregators.AdvancedMaxAggregator<V,T extends java.lang.Comparable<T>>
- java.lang.Object
-
- org.openjdk.jmc.common.item.Aggregators.AggregatorBase<V,C>
-
- org.openjdk.jmc.common.item.Aggregators.MergingAggregator<V,C>
-
- org.openjdk.jmc.common.item.Aggregators.FieldAggregatorBase<V,Aggregators.AdvancedMinMaxConsumer<V,T>>
-
- org.openjdk.jmc.common.item.Aggregators.AdvancedMinMaxAggregator<V,T>
-
- org.openjdk.jmc.common.item.Aggregators.AdvancedMaxAggregator<V,T>
-
- Type Parameters:
V
- the return value type, for examplejava.lang.String
T
- the value type for the ordering
- All Implemented Interfaces:
IDescribable
,IAggregator<V,Aggregators.AdvancedMinMaxConsumer<V,T>>
,IItemConsumerFactory<Aggregators.AdvancedMinMaxConsumer<V,T>>
,IValueBuilder<V,java.util.Iterator<Aggregators.AdvancedMinMaxConsumer<V,T>>>
- Enclosing class:
- Aggregators
public static class Aggregators.AdvancedMaxAggregator<V,T extends java.lang.Comparable<T>> extends Aggregators.AdvancedMinMaxAggregator<V,T>
This aggregator separates the attribute for which to do the ordering from the attribute to use for accessing the value. It is typically used for getting a specific value from the last event from a collection of events.For example:
AdvancedMaxAggregator<String, IQuantity> aggregator = new AdvancedMaxAggregator(myFavouriteAttribute, endTimeAttribute);
-
-
Constructor Summary
Constructors Constructor Description AdvancedMaxAggregator(java.lang.String name, java.lang.String description, IAttribute<V> attribute, IAttribute<T> comparator)
-
Method Summary
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.AdvancedMinMaxAggregator
doGetAccessor, getValue, newItemConsumer
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.FieldAggregatorBase
acceptType, getAccessor
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.MergingAggregator
getValue
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.AggregatorBase
getDescription, getName, getValueType
-
-
-
-
Constructor Detail
-
AdvancedMaxAggregator
public AdvancedMaxAggregator(java.lang.String name, java.lang.String description, IAttribute<V> attribute, IAttribute<T> comparator)
-
-