MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / new

Method new

src/compute/src/render/reduce.rs:2528–2540  ·  view source on GitHub ↗
(agg: &AggregateFunc, reverse: bool)

Source from the content-addressed store, hash-verified

2526
2527 impl mz_expr::OneByOneAggr for OneByOneAggrImpls {
2528 fn new(agg: &AggregateFunc, reverse: bool) -> Self {
2529 match reduction_type(agg) {
2530 ReductionType::Basic => {
2531 OneByOneAggrImpls::Basic(mz_expr::NaiveOneByOneAggr::new(agg, reverse))
2532 }
2533 ReductionType::Accumulable => {
2534 OneByOneAggrImpls::Accumulable(AccumulableOneByOneAggr::new(agg))
2535 }
2536 ReductionType::Hierarchical => {
2537 OneByOneAggrImpls::Hierarchical(HierarchicalOneByOneAggr::new(agg))
2538 }
2539 }
2540 }
2541
2542 fn give(&mut self, d: &Datum) {
2543 match self {

Callers

nothing calls this directly

Calls 7

reduction_typeFunction · 0.85
accumulable_zeroFunction · 0.85
get_monoidFunction · 0.85
packerMethod · 0.80
expectMethod · 0.80
cloneMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected