Package org.h2.expression.aggregate
Class AggregateDataStdVar
java.lang.Object
org.h2.expression.aggregate.AggregateData
org.h2.expression.aggregate.AggregateDataStdVar
Data stored while calculating a STDDEV_POP, STDDEV_SAMP, VAR_SAMP, VAR_POP,
REGR_SXX, or REGR_SYY aggregate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AggregateTypeprivate longprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(SessionLocal session, Value v) Add a value to this aggregate.(package private) ValuegetValue(SessionLocal session) Get the aggregate result.
-
Field Details
-
aggregateType
-
count
private long count -
m2
private double m2 -
mean
private double mean
-
-
Constructor Details
-
AggregateDataStdVar
AggregateDataStdVar(AggregateType aggregateType) - Parameters:
aggregateType- the type of the aggregate operation
-
-
Method Details
-
add
Description copied from class:AggregateDataAdd a value to this aggregate.- Specified by:
addin classAggregateData- Parameters:
session- the sessionv- the value
-
getValue
Description copied from class:AggregateDataGet the aggregate result.- Specified by:
getValuein classAggregateData- Parameters:
session- the session- Returns:
- the value
-