Package org.h2.expression.aggregate
Class AggregateDataStdVar
- java.lang.Object
-
- org.h2.expression.aggregate.AggregateData
-
- org.h2.expression.aggregate.AggregateDataStdVar
-
final class AggregateDataStdVar extends AggregateData
Data stored while calculating a STDDEV_POP, STDDEV_SAMP, VAR_SAMP, VAR_POP, REGR_SXX, or REGR_SYY aggregate.
-
-
Field Summary
Fields Modifier and Type Field Description private AggregateType
aggregateType
private long
count
private double
m2
private double
mean
-
Constructor Summary
Constructors Constructor Description AggregateDataStdVar(AggregateType aggregateType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(SessionLocal session, Value v)
Add a value to this aggregate.(package private) Value
getValue(SessionLocal session)
Get the aggregate result.
-
-
-
Field Detail
-
aggregateType
private final AggregateType aggregateType
-
count
private long count
-
m2
private double m2
-
mean
private double mean
-
-
Constructor Detail
-
AggregateDataStdVar
AggregateDataStdVar(AggregateType aggregateType)
- Parameters:
aggregateType
- the type of the aggregate operation
-
-
Method Detail
-
add
void add(SessionLocal session, Value v)
Description copied from class:AggregateData
Add a value to this aggregate.- Specified by:
add
in classAggregateData
- Parameters:
session
- the sessionv
- the value
-
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
-
-