public class Aggregators extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Aggregators.AdvancedMaxAggregator<V,T extends Comparable<T>>
This aggregator separates the attribute for which to do the ordering from the attribute to
use for accessing the value.
|
static class |
Aggregators.AdvancedMinAggregator<V,T extends Comparable<T>>
This aggregator separates the attribute for which to do the ordering from the attribute to
use for accessing the value.
|
static class |
Aggregators.AdvancedMinMaxConsumer<V,T extends Comparable<T>>
This consumer separates the attribute for which to do the ordering from the attribute to use
for accessing the value.
|
static class |
Aggregators.AggregatorBase<V,C extends IItemConsumer<C>> |
static class |
Aggregators.Avg |
static class |
Aggregators.AvgConsumer |
static class |
Aggregators.CountConsumer |
static class |
Aggregators.FieldAggregatorBase<V,C extends IItemConsumer<C>> |
static class |
Aggregators.MergingAggregator<V,C extends IItemConsumer<C>> |
static class |
Aggregators.MinMax<V extends Comparable<V>> |
static class |
Aggregators.MinMaxConsumer<V extends Comparable<V>> |
static class |
Aggregators.SetConsumer<T> |
static class |
Aggregators.Stddev |
static class |
Aggregators.Sum |
static class |
Aggregators.Variance |
static class |
Aggregators.VarianceConsumer
Consumer for calculating stddev and variance in a one pass, numerically stable way.
|
Constructor and Description |
---|
Aggregators() |
Modifier and Type | Method and Description |
---|---|
static IAggregator<Boolean,?> |
and(String typeId,
IAttribute<Boolean> attribute) |
static IAggregator<IQuantity,?> |
avg(IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
avg(String typeId,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
avg(String name,
String description,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
avg(String name,
String description,
KindOfQuantity<?> ct,
IAccessorFactory<IQuantity> af) |
static IAggregator<IQuantity,?> |
avg(String name,
String description,
String typeId,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,Aggregators.CountConsumer> |
count() |
static IAggregator<IQuantity,?> |
count(IItemFilter filter) |
static IAggregator<IQuantity,?> |
count(IType<?> type) |
static IAggregator<IQuantity,Aggregators.CountConsumer> |
count(String name,
String description) |
static IAggregator<IQuantity,?> |
count(String name,
String description,
IItemFilter filter) |
static <T> IAggregator<IQuantity,?> |
countDistinct(String name,
String description,
IAccessorFactory<T> attribute) |
static <T> IAggregator<Set<T>,?> |
distinct(IAttribute<T> attribute) |
static <T> IAggregator<Set<T>,?> |
distinct(String name,
IAccessorFactory<T> attribute) |
static IAggregator<String,?> |
distinctAsString(IAttribute<String> attribute,
String delimiter) |
static IAggregator<String,?> |
distinctAsString(IAttribute<String> attribute,
String delimiter,
String name,
String description) |
static IAggregator<String,?> |
distinctAsString(String typeId,
IAttribute<String> attribute) |
static <V> IAggregator<V,?> |
filter(IAggregator<V,?> aggregator,
IItemFilter filter) |
static <V,C extends IItemConsumer<C>> |
filter(String name,
String description,
IAggregator<V,C> aggregator,
IItemFilter filter) |
static <C extends IItemConsumer<C>> |
forConsumer(IItemConsumerFactory<C> consumerFactory) |
static <C extends IItemConsumer<C>> |
forConsumer(IItemConsumerFactory<C> consumerFactory,
IPredicate<IType<IItem>> acceptType) |
static IAggregator<IQuantity,?> |
getQuantityAggregator(String name) |
static IAggregator<IQuantity,?> |
getQuantityAggregator(String name,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
getQuantityAggregator(String name,
IType<?> type) |
static <V extends Comparable<V>> |
itemWithMax(IAttribute<V> attribute) |
static <V extends Comparable<V>> |
itemWithMin(IAttribute<V> attribute) |
static <V extends Comparable<V>> |
max(IAttribute<V> attribute) |
static IAggregator<IQuantity,?> |
max(String typeId,
IAttribute<IQuantity> attribute) |
static <V extends Comparable<V>> |
max(String name,
String description,
IAttribute<V> attribute) |
static <V extends Comparable<V>> |
max(String name,
String description,
String typeId,
IAttribute<V> attribute) |
static <V extends Comparable<V>> |
min(IAttribute<V> attribute) |
static <V extends Comparable<V>> |
min(String typeId,
IAttribute<V> attribute) |
static <V extends Comparable<V>> |
min(String name,
String description,
String typeId,
IAttribute<V> attribute) |
static IAggregator<Boolean,?> |
or(String typeId,
IAttribute<Boolean> attribute) |
static IAggregator<IQuantity,?> |
stddev(IAttribute<IQuantity> attribute)
Calculates the sample standard deviation for a linear quantity attribute.
|
static IAggregator<IQuantity,?> |
stddev(String name,
String description,
IAttribute<IQuantity> attribute)
Calculates the sample standard deviation for a linear quantity attribute.
|
static IAggregator<IQuantity,?> |
stddevp(IAttribute<IQuantity> attribute)
Calculates the population standard deviation for a linear quantity attribute.
|
static IAggregator<IQuantity,?> |
stddevp(String name,
String description,
IAttribute<IQuantity> attribute)
Calculates the population standard deviation for a linear quantity attribute.
|
static IAggregator<IQuantity,?> |
sum(IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
sum(String typeId,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
sum(String name,
String description,
IAttribute<IQuantity> attribute) |
static IAggregator<IQuantity,?> |
sum(String name,
String description,
LinearKindOfQuantity ct,
IAccessorFactory<IQuantity> af) |
static IAggregator<IQuantity,?> |
sum(String name,
String description,
String typeId,
IAttribute<IQuantity> attribute) |
static <V1,V2,C extends IItemConsumer<C>> |
valueBuilderAggregator(IAggregator<V1,C> aggregator,
org.openjdk.jmc.common.item.IValueBuilder<V2,V1> valuebuilder,
String name,
String description) |
static IAggregator<IQuantity,?> |
variance(IAttribute<IQuantity> attribute)
Calculates the sample variance for a linear quantity attribute.
|
static IAggregator<IQuantity,?> |
variancep(IAttribute<IQuantity> attribute)
Calculates the population variance for a linear quantity attribute.
|
public static <V extends Comparable<V>> IAggregator<IItem,?> itemWithMin(IAttribute<V> attribute)
public static <V extends Comparable<V>> IAggregator<IItem,?> itemWithMax(IAttribute<V> attribute)
public static <V> IAggregator<V,?> filter(IAggregator<V,?> aggregator, IItemFilter filter)
public static <V,C extends IItemConsumer<C>> IAggregator<V,?> filter(String name, String description, IAggregator<V,C> aggregator, IItemFilter filter)
public static IAggregator<IQuantity,?> sum(IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> variance(IAttribute<IQuantity> attribute)
attribute
- the attribute to calculate the sample variance forpublic static IAggregator<IQuantity,?> variancep(IAttribute<IQuantity> attribute)
attribute
- the attribute to calculate the population variance forpublic static IAggregator<IQuantity,?> stddev(IAttribute<IQuantity> attribute)
attribute
- the attribute to calculate the sample standard deviation forpublic static IAggregator<IQuantity,?> stddev(String name, String description, IAttribute<IQuantity> attribute)
name
- aggregator namedescription
- aggregator descriptionattribute
- the attribute to calculate the sample standard deviation forpublic static IAggregator<IQuantity,?> stddevp(IAttribute<IQuantity> attribute)
attribute
- the attribute to calculate the population standard deviation forpublic static IAggregator<IQuantity,?> stddevp(String name, String description, IAttribute<IQuantity> attribute)
name
- aggregator namedescription
- aggregator descriptionattribute
- the attribute to calculate the population standard deviation forpublic static IAggregator<IQuantity,?> sum(String typeId, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> sum(String name, String description, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> sum(String name, String description, String typeId, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> sum(String name, String description, LinearKindOfQuantity ct, IAccessorFactory<IQuantity> af)
public static IAggregator<IQuantity,?> avg(IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> avg(String typeId, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> avg(String name, String description, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> avg(String name, String description, String typeId, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> avg(String name, String description, KindOfQuantity<?> ct, IAccessorFactory<IQuantity> af)
public static <V extends Comparable<V>> IAggregator<V,?> min(IAttribute<V> attribute)
public static <V extends Comparable<V>> IAggregator<V,?> min(String typeId, IAttribute<V> attribute)
public static <V extends Comparable<V>> IAggregator<V,?> min(String name, String description, String typeId, IAttribute<V> attribute)
public static <V extends Comparable<V>> IAggregator<V,?> max(IAttribute<V> attribute)
public static IAggregator<IQuantity,?> max(String typeId, IAttribute<IQuantity> attribute)
public static <V extends Comparable<V>> IAggregator<V,?> max(String name, String description, IAttribute<V> attribute)
public static <V extends Comparable<V>> IAggregator<V,?> max(String name, String description, String typeId, IAttribute<V> attribute)
public static IAggregator<IQuantity,Aggregators.CountConsumer> count()
public static IAggregator<IQuantity,Aggregators.CountConsumer> count(String name, String description)
public static IAggregator<IQuantity,?> count(IType<?> type)
public static IAggregator<IQuantity,?> count(IItemFilter filter)
public static IAggregator<IQuantity,?> count(String name, String description, IItemFilter filter)
public static IAggregator<Boolean,?> and(String typeId, IAttribute<Boolean> attribute)
public static IAggregator<Boolean,?> or(String typeId, IAttribute<Boolean> attribute)
public static IAggregator<String,?> distinctAsString(String typeId, IAttribute<String> attribute)
public static IAggregator<String,?> distinctAsString(IAttribute<String> attribute, String delimiter)
public static IAggregator<String,?> distinctAsString(IAttribute<String> attribute, String delimiter, String name, String description)
public static <V1,V2,C extends IItemConsumer<C>> IAggregator<V2,C> valueBuilderAggregator(IAggregator<V1,C> aggregator, org.openjdk.jmc.common.item.IValueBuilder<V2,V1> valuebuilder, String name, String description)
public static <T> IAggregator<IQuantity,?> countDistinct(String name, String description, IAccessorFactory<T> attribute)
public static <T> IAggregator<Set<T>,?> distinct(IAttribute<T> attribute)
public static <T> IAggregator<Set<T>,?> distinct(String name, IAccessorFactory<T> attribute)
public static <C extends IItemConsumer<C>> IAggregator<C,C> forConsumer(IItemConsumerFactory<C> consumerFactory)
public static <C extends IItemConsumer<C>> IAggregator<C,C> forConsumer(IItemConsumerFactory<C> consumerFactory, IPredicate<IType<IItem>> acceptType)
public static IAggregator<IQuantity,?> getQuantityAggregator(String name, IAttribute<IQuantity> attribute)
public static IAggregator<IQuantity,?> getQuantityAggregator(String name, IType<?> type)
public static IAggregator<IQuantity,?> getQuantityAggregator(String name)
Copyright © 2020. All rights reserved.