Class AbstractAggregation<T>
- java.lang.Object
-
- com.macrofocus.molap.aggregates.aggregation.AbstractAggregation<T>
-
- All Implemented Interfaces:
Aggregation<T>
- Direct Known Subclasses:
CentroidAggregation
,ConstantAggregation
,CountAggregation
,CountDistinctAggregation
,CountDistinctWithNullAggregation
,DataFrameAggregation
,DistributiveStatisticsAggregation
,FirstAggregation
,FirstQuartileAggregation
,MaxAggregation
,MeanAggregation
,MedianAggregation
,MinAggregation
,RandomAggregation
,StdDevAggregation
,SumAggregation
,ThirdQuartileAggregation
,TimeSeriesAggregation
,UnivariateStatisticsAggregation
,VarianceAggregation
public abstract class AbstractAggregation<T> extends java.lang.Object implements Aggregation<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractAggregation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregation
add(Aggregation aggregation)
Creates a new aggregation method that adds the value of the specified aggregation to this aggregation.Aggregation<T>
as(java.lang.String name)
Aggregation
divide(Aggregation aggregation)
Creates a new aggregation method that divides the value of the specified aggregation to this aggregation.java.lang.String
getName()
Aggregation
max(Aggregation aggregation)
Creates a new aggregation method that returns the maximum the specified aggregation to this aggregation.Aggregation
min(Aggregation aggregation)
Creates a new aggregation method that returns the minimum the specified aggregation to this aggregation.Aggregation
multiply(Aggregation aggregation)
Creates a new aggregation method that multiplies the value of the specified aggregation to this aggregation.Aggregation
substract(Aggregation aggregation)
Creates a new aggregation method that subtracts the value of the specified aggregation to this aggregation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.aggregates.aggregation.Aggregation
compute, getType
-
-
-
-
Method Detail
-
as
public Aggregation<T> as(java.lang.String name)
- Specified by:
as
in interfaceAggregation<T>
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceAggregation<T>
-
add
public Aggregation add(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that adds the value of the specified aggregation to this aggregation.- Specified by:
add
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to add- Returns:
- a new aggregation method
-
substract
public Aggregation substract(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that subtracts the value of the specified aggregation to this aggregation.- Specified by:
substract
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to subtract- Returns:
- a new aggregation method
-
multiply
public Aggregation multiply(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that multiplies the value of the specified aggregation to this aggregation.- Specified by:
multiply
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to multiply- Returns:
- a new aggregation method
-
divide
public Aggregation divide(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that divides the value of the specified aggregation to this aggregation.- Specified by:
divide
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to divide- Returns:
- a new aggregation method
-
min
public Aggregation min(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that returns the minimum the specified aggregation to this aggregation.- Specified by:
min
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to minimize- Returns:
- a new aggregation method
-
max
public Aggregation max(Aggregation aggregation)
Description copied from interface:Aggregation
Creates a new aggregation method that returns the maximum the specified aggregation to this aggregation.- Specified by:
max
in interfaceAggregation<T>
- Parameters:
aggregation
- the aggregation method whose value is to maximize- Returns:
- a new aggregation method
-
-