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

Method new

datafusion/expr/src/udwf.rs:503–514  ·  view source on GitHub ↗
(
        inner: Arc<dyn WindowUDFImpl>,
        new_aliases: impl IntoIterator<Item = &'static str>,
    )

Source from the content-addressed store, hash-verified

501
502impl AliasedWindowUDFImpl {
503 pub fn new(
504 inner: Arc<dyn WindowUDFImpl>,
505 new_aliases: impl IntoIterator<Item = &'static str>,
506 ) -> Self {
507 let mut aliases = inner.aliases().to_vec();
508 aliases.extend(new_aliases.into_iter().map(|s| s.to_string()));
509
510 Self {
511 inner: inner.into(),
512 aliases,
513 }
514 }
515}
516
517#[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