|
| | WindowSegmentTree (const BoundWindowExpression &wexpr, WindowSharedExpressions &shared) |
| unique_ptr< GlobalSinkState > | GetGlobalState (ClientContext &context, idx_t group_count, const ValidityMask &partition_mask) const override |
| unique_ptr< LocalSinkState > | GetLocalState (ExecutionContext &context, const GlobalSinkState &gstate) const override |
| void | Finalize (ExecutionContext &context, CollectionPtr collection, const FrameStats &stats, OperatorSinkInput &sink) override |
| void | Evaluate (ExecutionContext &context, const DataChunk &bounds, Vector &result, idx_t count, idx_t row_idx, OperatorSinkInput &sink) const override |
| | WindowAggregator (const BoundWindowExpression &wexpr) |
| | WindowAggregator (const BoundWindowExpression &wexpr, WindowSharedExpressions &shared) |
| virtual void | Sink (ExecutionContext &context, DataChunk &sink_chunk, DataChunk &coll_chunk, idx_t input_idx, optional_ptr< SelectionVector > filter_sel, idx_t filtered, OperatorSinkInput &sink) |
◆ WindowSegmentTree()
257575 : WindowAggregator(
wexpr, shared) {
257576}
const BoundWindowExpression & wexpr
The window function.
Definition duckdb.cpp:164034
◆ CanAggregate()
257562 {
257563 if (!
wexpr.aggregate) {
257564 return false;
257565 }
257566
257567 if (!
wexpr.aggregate->CanAggregate()) {
257568 return false;
257569 }
257570
257571 return !
wexpr.distinct &&
wexpr.arg_orders.empty();
257572}
◆ GetGlobalState()
Reimplemented from duckdb::WindowAggregator.
257732 {
257733 return make_uniq<WindowSegmentTreeGlobalState>(context, *this, group_count);
257734}
◆ GetLocalState()
◆ Finalize()
Reimplemented from duckdb::WindowAggregator.
257696 {
257697 WindowAggregator::Finalize(context, collection, stats, sink);
257698
257699 auto &gasink = sink.global_state.Cast<WindowSegmentTreeGlobalState>();
257700 ++gasink.finalized;
257701}
◆ Evaluate()
Implements duckdb::WindowAggregator.
257942 {
257943 const auto >state = sink.global_state.Cast<WindowSegmentTreeGlobalState>();
257944 auto <state = sink.local_state.Cast<WindowSegmentTreeLocalState>();
257945 ltstate.Evaluate(context, gtstate, bounds, result, count, row_idx);
257946}
The documentation for this class was generated from the following file: