pub struct DFTimestampWithOffset { /* private fields */ }Expand description
Defines the extension type logic for the canonical arrow.timestamp_with_offset extension type.
This extension type allows associating a different offset for each timestamp in a column.
See DFExtensionType for information on DataFusion’s extension type mechanism. See also
TimestampWithOffset for the implementation of arrow-rs, which this type uses internally.
https://arrow.apache.org/docs/format/CanonicalExtensions.html#timestamp-with-offset
Implementations§
Source§impl DFTimestampWithOffset
impl DFTimestampWithOffset
Sourcepub fn try_new(
data_type: &DataType,
metadata: <TimestampWithOffset as ExtensionType>::Metadata,
) -> Result<DFTimestampWithOffset, DataFusionError>
pub fn try_new( data_type: &DataType, metadata: <TimestampWithOffset as ExtensionType>::Metadata, ) -> Result<DFTimestampWithOffset, DataFusionError>
Creates a new DFTimestampWithOffset, validating that the storage type is compatible with
the extension type.
Trait Implementations§
Source§impl Clone for DFTimestampWithOffset
impl Clone for DFTimestampWithOffset
Source§fn clone(&self) -> DFTimestampWithOffset
fn clone(&self) -> DFTimestampWithOffset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DFExtensionType for DFTimestampWithOffset
impl DFExtensionType for DFTimestampWithOffset
Source§fn storage_type(&self) -> DataType
fn storage_type(&self) -> DataType
Returns the underlying storage type.
Source§fn serialize_metadata(&self) -> Option<String>
fn serialize_metadata(&self) -> Option<String>
Returns the serialized metadata.
Source§fn create_array_formatter<'fmt>(
&self,
array: &'fmt dyn Array,
options: &FormatOptions<'fmt>,
) -> Result<Option<ArrayFormatter<'fmt>>, DataFusionError>
fn create_array_formatter<'fmt>( &self, array: &'fmt dyn Array, options: &FormatOptions<'fmt>, ) -> Result<Option<ArrayFormatter<'fmt>>, DataFusionError>
Returns an
ArrayFormatter that can format values of this type. Read moreAuto Trait Implementations§
impl Freeze for DFTimestampWithOffset
impl RefUnwindSafe for DFTimestampWithOffset
impl Send for DFTimestampWithOffset
impl Sync for DFTimestampWithOffset
impl Unpin for DFTimestampWithOffset
impl UnsafeUnpin for DFTimestampWithOffset
impl UnwindSafe for DFTimestampWithOffset
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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