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

Method append_strings

datafusion/functions-aggregate/src/string_agg.rs:469–481  ·  view source on GitHub ↗
(&mut self, iter: I)

Source from the content-addressed store, hash-verified

467
468 #[inline]
469 fn append_strings<'a, I>(&mut self, iter: I)
470 where
471 I: Iterator<Item = Option<&'a str>>,
472 {
473 for value in iter.flatten() {
474 if self.has_value {
475 self.accumulated_string.push_str(&self.delimiter);
476 }
477
478 self.accumulated_string.push_str(value);
479 self.has_value = true;
480 }
481 }
482}
483
484impl Accumulator for SimpleStringAggAccumulator {

Callers 1

update_batchMethod · 0.80

Calls 1

flattenMethod · 0.80

Tested by

no test coverage detected