Struct exon_common::TableSchemaBuilder
source · pub struct TableSchemaBuilder { /* private fields */ }
Expand description
A builder for TableSchema
.
Implementations§
source§impl TableSchemaBuilder
impl TableSchemaBuilder
sourcepub fn new_with_field_fields(file_fields: Vec<Field>) -> Self
pub fn new_with_field_fields(file_fields: Vec<Field>) -> Self
Create a new builder with the passed file fields.
sourcepub fn add_file_fields(self, fields: Vec<Field>) -> Self
pub fn add_file_fields(self, fields: Vec<Field>) -> Self
Adds file fields to the TableSchema
.
sourcepub fn add_partition_fields(self, fields: Vec<Field>) -> Self
pub fn add_partition_fields(self, fields: Vec<Field>) -> Self
Adds partition fields to the TableSchema
.
sourcepub fn build(self) -> TableSchema
pub fn build(self) -> TableSchema
Builds the TableSchema
, taking a SchemaRef
as an argument, and returning a Result.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TableSchemaBuilder
impl Send for TableSchemaBuilder
impl Sync for TableSchemaBuilder
impl Unpin for TableSchemaBuilder
impl UnwindSafe for TableSchemaBuilder
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