pub struct SAMSchemaBuilder { /* private fields */ }Expand description
Builds a schema for the BAM file.
Implementations§
Source§impl SAMSchemaBuilder
impl SAMSchemaBuilder
Sourcepub fn new(file_fields: Vec<Field>, partition_fields: Vec<Field>) -> Self
pub fn new(file_fields: Vec<Field>, partition_fields: Vec<Field>) -> Self
Creates a new SAM schema builder.
Sourcepub fn with_partition_fields(self, partition_fields: Vec<Field>) -> Self
pub fn with_partition_fields(self, partition_fields: Vec<Field>) -> Self
Set the partition fields.
Sets the data type for the tags field.
Sets the data type for the tags field from the data.
Sourcepub fn build(self) -> TableSchema
pub fn build(self) -> TableSchema
Builds a schema for the BAM file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SAMSchemaBuilder
impl RefUnwindSafe for SAMSchemaBuilder
impl Send for SAMSchemaBuilder
impl Sync for SAMSchemaBuilder
impl Unpin for SAMSchemaBuilder
impl UnwindSafe for SAMSchemaBuilder
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
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