pub struct SchemaBuilder { /* private fields */ }Expand description
Builder for constructing Arrow schemas from Exasol metadata.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
Sourcepub fn add_column(self, column: ColumnMetadata) -> Self
pub fn add_column(self, column: ColumnMetadata) -> Self
Add a column to the schema.
Sourcepub fn add_columns(self, columns: Vec<ColumnMetadata>) -> Self
pub fn add_columns(self, columns: Vec<ColumnMetadata>) -> Self
Add multiple columns to the schema.
Sourcepub fn build(self) -> Result<Schema, ConversionError>
pub fn build(self) -> Result<Schema, ConversionError>
Sourcepub fn build_with_metadata(
self,
metadata: HashMap<String, String>,
) -> Result<Schema, ConversionError>
pub fn build_with_metadata( self, metadata: HashMap<String, String>, ) -> Result<Schema, ConversionError>
Build the Arrow schema with additional schema-level metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnsafeUnpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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