pub struct SchemaMapper;Expand description
Implementations§
Source§impl SchemaMapper
impl SchemaMapper
Sourcepub fn from_result_set(result_set: &ResultSet) -> Schema
pub fn from_result_set(result_set: &ResultSet) -> Schema
Build an Arrow schema from HANA ResultSet metadata.
§Arguments
result_set- The HANAResultSetto extract metadata from
Sourcepub fn from_field_metadata(metadata: &[FieldMetadata]) -> Schema
pub fn from_field_metadata(metadata: &[FieldMetadata]) -> Schema
Build an Arrow schema from a slice of HANA FieldMetadata.
§Arguments
metadata- Slice of HANA field metadata
Sourcepub fn schema_ref_from_result_set(result_set: &ResultSet) -> SchemaRef
pub fn schema_ref_from_result_set(result_set: &ResultSet) -> SchemaRef
Build an Arrow SchemaRef from HANA ResultSet metadata.
Returns an Arc<Schema> for efficient sharing.
Sourcepub fn schema_ref_from_field_metadata(metadata: &[FieldMetadata]) -> SchemaRef
pub fn schema_ref_from_field_metadata(metadata: &[FieldMetadata]) -> SchemaRef
Build an Arrow SchemaRef from HANA field metadata.
Returns an Arc<Schema> for efficient sharing.
Trait Implementations§
Source§impl Clone for SchemaMapper
impl Clone for SchemaMapper
Source§fn clone(&self) -> SchemaMapper
fn clone(&self) -> SchemaMapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaMapper
impl Debug for SchemaMapper
Source§impl Default for SchemaMapper
impl Default for SchemaMapper
Source§fn default() -> SchemaMapper
fn default() -> SchemaMapper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaMapper
impl RefUnwindSafe for SchemaMapper
impl Send for SchemaMapper
impl Sync for SchemaMapper
impl Unpin for SchemaMapper
impl UnwindSafe for SchemaMapper
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