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

Method new

datafusion/expr/src/udf.rs:1061–1071  ·  view source on GitHub ↗
(
        inner: Arc<dyn ScalarUDFImpl>,
        new_aliases: impl IntoIterator<Item = &'static str>,
    )

Source from the content-addressed store, hash-verified

1059
1060impl AliasedScalarUDFImpl {
1061 pub fn new(
1062 inner: Arc<dyn ScalarUDFImpl>,
1063 new_aliases: impl IntoIterator<Item = &'static str>,
1064 ) -> Self {
1065 let mut aliases = inner.aliases().to_vec();
1066 aliases.extend(new_aliases.into_iter().map(|s| s.to_string()));
1067 Self {
1068 inner: inner.into(),
1069 aliases,
1070 }
1071 }
1072}
1073
1074#[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