MCPcopy Create free account
hub / github.com/apache/datafusion / clear_state

Method clear_state

datafusion/functions-aggregate/src/array_agg.rs:514–520  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

512 }
513
514 fn clear_state(&mut self) {
515 // `size()` measures Vec capacity rather than len, so allocate new
516 // buffers instead of using `clear()`.
517 self.batches = Vec::new();
518 self.batch_entries = Vec::new();
519 self.num_groups = 0;
520 }
521
522 fn compact_retained_state(&mut self, emit_groups: usize) -> Result<()> {
523 // EmitTo::First is used to recover from memory pressure. Simply

Callers 1

evaluateMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected