pub struct WindowUDFFieldArgs<'a> {
input_fields: &'a [Arc<Field>],
display_name: &'a str,
}Expand description
Metadata for defining the result field from evaluating a user-defined window function.
Fields§
§input_fields: &'a [Arc<Field>]§display_name: &'a strImplementations§
Source§impl<'a> WindowUDFFieldArgs<'a>
impl<'a> WindowUDFFieldArgs<'a>
Sourcepub fn new(
input_fields: &'a [Arc<Field>],
display_name: &'a str,
) -> WindowUDFFieldArgs<'a>
pub fn new( input_fields: &'a [Arc<Field>], display_name: &'a str, ) -> WindowUDFFieldArgs<'a>
Create an instance of WindowUDFFieldArgs.
§Arguments
input_fields- The fields 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_fields(&self) -> &[Arc<Field>]
pub fn input_fields(&self) -> &[Arc<Field>]
Returns the field 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_field(&self, index: usize) -> Option<Arc<Field>>
pub fn get_input_field(&self, index: usize) -> Option<Arc<Field>>
Returns Some(Field) 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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