QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSDATETIMESTATISTICALSUMMARY_H
17 #define QGSDATETIMESTATISTICALSUMMARY_H
19 #include "qgis_core.h"
24 #include <QVariantList>
58 All = Count | CountDistinct | CountMissing | Min | Max | Range,
60 Q_DECLARE_FLAGS( Statistics, Statistic )
94 void calculate(
const QVariantList &values );
109 void addValue(
const QVariant &value );
128 int count()
const {
return mCount; }
148 QDateTime
min()
const {
return mMin; }
153 QDateTime
max()
const {
return mMax; }
168 Statistics mStatistics;
171 QSet< QDateTime > mValues;
177 void testDateTime(
const QDateTime &dateTime,
bool isNull );
182 #endif // QGSDATETIMESTATISTICALSUMMARY_H
Statistics statistics() const
Returns flags which specify which statistics will be calculated.
int countMissing() const
Returns the number of missing (null) datetime values.
QgsInterval range() const
Returns the range (interval between earliest and latest non-null datetime values).
void setStatistics(Statistics stats)
Sets flags which specify which statistics will be calculated.
Statistic
Enumeration of flags that specify statistics to be calculated.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
int count() const
Returns the calculated count of values.
A representation of the interval between two datetime values.
int countDistinct() const
Returns the number of distinct datetime values.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
Calculator for summary statistics and aggregates for a list of datetimes.