Class AggregateAnalysis
java.lang.Object
com.kingsrook.qqq.backend.core.utils.aggregates.AggregateAnalysis
Shared validation, result types and bucket semantics for aggregate execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOrder-only aggregates need capabilities, validation and accumulator state too.static SerializableapplyFormatString(Serializable value, GroupBy groupBy) Legacy format-string support shared with memory aggregation.static Serializablebucket(Serializable value, GroupByBucket bucket, ZoneId zone) Bucket a value in the session zone.static QFieldTypebucketType(GroupBy group) Result type for bucket keys.static Set<AggregateCapability> Capabilities required by operators and buckets; sampling is best effort.static QFieldTyperesultType(Aggregate aggregate, QFieldType sourceType) Result type for the new operators, preserving legacy caller overrides.static voidvalidate(AggregateInput input) Validate extension parameters before either execution path.
-
Constructor Details
-
AggregateAnalysis
public AggregateAnalysis()
-
-
Method Details
-
requiredCapabilities
Capabilities required by operators and buckets; sampling is best effort. -
validate
Validate extension parameters before either execution path.- Throws:
QException
-
resultType
Result type for the new operators, preserving legacy caller overrides. -
bucketType
Result type for bucket keys. -
bucket
Bucket a value in the session zone. The final numeric interval includes max. -
applyFormatString
Legacy format-string support shared with memory aggregation.- Throws:
QException
-
aggregatesIncludingOrderBy
Order-only aggregates need capabilities, validation and accumulator state too.
-