Struct exon::datasources::fastq::FASTQConfig
source · pub struct FASTQConfig {
pub batch_size: usize,
pub file_schema: SchemaRef,
pub object_store: Arc<dyn ObjectStore>,
pub projections: Option<Vec<usize>>,
}Expand description
Configuration for a FASTQ datasource.
Fields§
§batch_size: usizeThe number of FASTQ records to read at a time.
file_schema: SchemaRefThe schema of the FASTQ file.
object_store: Arc<dyn ObjectStore>The object store to use for reading FASTQ files.
projections: Option<Vec<usize>>Any projections to apply to the data.
Implementations§
source§impl FASTQConfig
impl FASTQConfig
sourcepub fn new(object_store: Arc<dyn ObjectStore>) -> Self
pub fn new(object_store: Arc<dyn ObjectStore>) -> Self
Create a new FASTQ configuration.
sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set the batch size.
sourcepub fn with_projections(self, projections: Vec<usize>) -> Self
pub fn with_projections(self, projections: Vec<usize>) -> Self
Set the projections.
Auto Trait Implementations§
impl !RefUnwindSafe for FASTQConfig
impl Send for FASTQConfig
impl Sync for FASTQConfig
impl Unpin for FASTQConfig
impl !UnwindSafe for FASTQConfig
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