Typed

Struct Typed 

Source
pub struct Typed<R> { /* private fields */ }
Expand description

Marker type for a compile-time typed schema R.

Trait Implementations§

Source§

impl<R> Default for Typed<R>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<R> SchemaLike for Typed<R>
where R: SchemaMeta + BuildRows,

Typed schema: compile-time path.

Source§

type Row = R

The row type produced/consumed for this schema.
Source§

type Builders = TypedBuilders<R>

Concrete builders used to accumulate rows into columns.
Source§

fn schema_ref(&self) -> Arc<Schema>

Return a shared reference to the underlying Arrow Schema.
Source§

fn new_builders(&self, capacity: usize) -> Self::Builders

Create new column builders with a given capacity hint.
Source§

fn build_batch<I>( &self, rows: I, ) -> Result<RecordBatch, <Self::Builders as BuildersLike>::Error>
where I: IntoIterator<Item = Self::Row>,

Build a RecordBatch from an iterator of rows. Read more

Auto Trait Implementations§

§

impl<R> Freeze for Typed<R>

§

impl<R> RefUnwindSafe for Typed<R>
where R: RefUnwindSafe,

§

impl<R> Send for Typed<R>
where R: Send,

§

impl<R> Sync for Typed<R>
where R: Sync,

§

impl<R> Unpin for Typed<R>
where R: Unpin,

§

impl<R> UnwindSafe for Typed<R>
where R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,