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

Method new

datafusion/expr/src/udaf.rs:1233–1244  ·  view source on GitHub ↗
(
        inner: Arc<dyn AggregateUDFImpl>,
        new_aliases: impl IntoIterator<Item = &'static str>,
    )

Source from the content-addressed store, hash-verified

1231
1232impl AliasedAggregateUDFImpl {
1233 pub fn new(
1234 inner: Arc<dyn AggregateUDFImpl>,
1235 new_aliases: impl IntoIterator<Item = &'static str>,
1236 ) -> Self {
1237 let mut aliases = inner.aliases().to_vec();
1238 aliases.extend(new_aliases.into_iter().map(|s| s.to_string()));
1239
1240 Self {
1241 inner: inner.into(),
1242 aliases,
1243 }
1244 }
1245}
1246
1247#[warn(clippy::missing_trait_methods)] // Delegates, so it should implement every single trait method

Callers

nothing calls this directly

Calls 7

to_vecMethod · 0.80
aliasesMethod · 0.45
extendMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45
to_stringMethod · 0.45
intoMethod · 0.45

Tested by

no test coverage detected