Package org.h2.expression.aggregate
Class AggregateDataCovar
- java.lang.Object
-
- org.h2.expression.aggregate.AggregateData
-
- org.h2.expression.aggregate.AggregateDataBinarySet
-
- org.h2.expression.aggregate.AggregateDataCovar
-
final class AggregateDataCovar extends AggregateDataBinarySet
Data stored while calculating a COVAR_POP, COVAR_SAMP, or REGR_SXY aggregate.
-
-
Field Summary
Fields Modifier and Type Field Description private AggregateType
aggregateType
private long
count
private double
sumX
private double
sumY
private double
sumYX
-
Constructor Summary
Constructors Constructor Description AggregateDataCovar(AggregateType aggregateType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(SessionLocal session, Value yValue, Value xValue)
(package private) Value
getValue(SessionLocal session)
Get the aggregate result.-
Methods inherited from class org.h2.expression.aggregate.AggregateDataBinarySet
add
-
-
-
-
Field Detail
-
aggregateType
private final AggregateType aggregateType
-
count
private long count
-
sumY
private double sumY
-
sumX
private double sumX
-
sumYX
private double sumYX
-
-
Constructor Detail
-
AggregateDataCovar
AggregateDataCovar(AggregateType aggregateType)
- Parameters:
aggregateType
- the type of the aggregate operation
-
-
Method Detail
-
add
void add(SessionLocal session, Value yValue, Value xValue)
- Specified by:
add
in classAggregateDataBinarySet
-
getValue
Value getValue(SessionLocal session)
Description copied from class:AggregateData
Get the aggregate result.- Specified by:
getValue
in classAggregateData
- Parameters:
session
- the session- Returns:
- the value
-
-