pub struct UdafSchemaNameBuilder<'a> { /* private fields */ }Expand description
Builds the default implementation of AggregateUDFImpl::schema_name.
§Example
let schema_name = UdafSchemaNameBuilder::new("my_udaf", ¶ms)
.with_supports_within_group_clause(false)
.build()
.unwrap();
assert_eq!(schema_name, "my_udaf(DISTINCT x) ORDER BY [y ASC NULLS LAST]");Implementations§
Source§impl<'a> UdafSchemaNameBuilder<'a>
impl<'a> UdafSchemaNameBuilder<'a>
Sourcepub fn new(name: &'a str, params: &'a AggregateFunctionParams) -> Self
pub fn new(name: &'a str, params: &'a AggregateFunctionParams) -> Self
Create a new builder for the function named name
(the result of AggregateUDFImpl::name)
Sourcepub fn with_supports_within_group_clause(
self,
supports_within_group_clause: bool,
) -> Self
pub fn with_supports_within_group_clause( self, supports_within_group_clause: bool, ) -> Self
Set whether the function supports the WITHIN GROUP clause
(the result of AggregateUDFImpl::supports_within_group_clause).
Defaults to false.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UdafSchemaNameBuilder<'a>
impl<'a> !UnwindSafe for UdafSchemaNameBuilder<'a>
impl<'a> Forget for UdafSchemaNameBuilder<'a>
impl<'a> Freeze for UdafSchemaNameBuilder<'a>
impl<'a> Move for UdafSchemaNameBuilder<'a>
impl<'a> Send for UdafSchemaNameBuilder<'a>
impl<'a> Sync for UdafSchemaNameBuilder<'a>
impl<'a> Unpin for UdafSchemaNameBuilder<'a>
impl<'a> UnsafeUnpin for UdafSchemaNameBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more