Top Description Fields Constructors Methods
org.h2.expression.aggregate

pack-priv final Class AggregateDataAvg

extends AggregateData
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger, .RoundingMode, org.h2.api.IntervalQualifier, org.h2.engine.SessionLocal, org.h2.util.IntervalUtils, org.h2.value.TypeInfo, .Value, .ValueDecfloat, .ValueDouble, .ValueInterval, .ValueNull, .ValueNumeric

Data stored while calculating an AVG aggregate.

Field Summary

Modifier and TypeField and Description
private long
private final TypeInfo
private BigDecimal
private double
private BigInteger

Constructor Summary

AccessConstructor and Description
pack-priv
AggregateDataAvg(TypeInfo
the data type of the computed result
dataType
)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(SessionLocal
the session
session
,
Value
the value
v
)

Implements abstract org.h2.expression.aggregate.AggregateData.add.

Add a value to this aggregate.

pack-priv Value
getValue(SessionLocal
the session
session
)

Implements abstract org.h2.expression.aggregate.AggregateData.getValue.

Get the aggregate result.

Field Detail

countback to summary
private long count
dataTypeback to summary
private final TypeInfo dataType
decimalValueback to summary
private BigDecimal decimalValue
doubleValueback to summary
private double doubleValue
integerValueback to summary
private BigInteger integerValue

Constructor Detail

AggregateDataAvgback to summary
pack-priv AggregateDataAvg(TypeInfo dataType)
Parameters
dataType:TypeInfo

the data type of the computed result

Method Detail

addback to summary
pack-priv void add(SessionLocal session, Value v)

Implements abstract org.h2.expression.aggregate.AggregateData.add.

Doc from org.h2.expression.aggregate.AggregateData.add.

Add a value to this aggregate.

Parameters
session:SessionLocal

the session

v:Value

the value

Annotations
@Override
getValueback to summary
pack-priv Value getValue(SessionLocal session)

Implements abstract org.h2.expression.aggregate.AggregateData.getValue.

Doc from org.h2.expression.aggregate.AggregateData.getValue.

Get the aggregate result.

Parameters
session:SessionLocal

the session

Returns:Value

the value

Annotations
@Override