pub struct WindowUDFFieldArgs<'a> { /* private fields */ }
Expand description
Metadata for defining the result field from evaluating a user-defined window function.
Implementations§
Source§impl<'a> WindowUDFFieldArgs<'a>
impl<'a> WindowUDFFieldArgs<'a>
Sourcepub fn new(
input_types: &'a [DataType],
display_name: &'a str,
) -> WindowUDFFieldArgs<'a>
pub fn new( input_types: &'a [DataType], display_name: &'a str, ) -> WindowUDFFieldArgs<'a>
Create an instance of WindowUDFFieldArgs
.
§Arguments
input_types
- The data types corresponding to the arguments to the user-defined window function.function_name
- The qualified schema name of the user-defined window function expression.
Sourcepub fn input_types(&self) -> &[DataType]
pub fn input_types(&self) -> &[DataType]
Returns the data type of input expressions passed as arguments to the user-defined window function.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name for the field of the final result of evaluating the user-defined window function.
Sourcepub fn get_input_type(&self, index: usize) -> Option<DataType>
pub fn get_input_type(&self, index: usize) -> Option<DataType>
Returns Some(DataType)
of input expression at index, otherwise
returns None
if the index is out of bounds.
Auto Trait Implementations§
impl<'a> Freeze for WindowUDFFieldArgs<'a>
impl<'a> RefUnwindSafe for WindowUDFFieldArgs<'a>
impl<'a> Send for WindowUDFFieldArgs<'a>
impl<'a> Sync for WindowUDFFieldArgs<'a>
impl<'a> Unpin for WindowUDFFieldArgs<'a>
impl<'a> UnwindSafe for WindowUDFFieldArgs<'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