pub struct TableReader { /* private fields */ }Expand description
A table opened for streaming: its header is read up front, its rows on
demand through TableReader::rows.
Implementations§
Source§impl TableReader
impl TableReader
Sourcepub fn open(path: &str) -> Result<Self>
pub fn open(path: &str) -> Result<Self>
Open path and read its header. Parquet is recognised by extension;
anything else is delimited text, gzip-decoded when it ends in .gz.
A text header is the first line that does not start with ## (VCF-
style meta lines are skipped), with one leading # dropped
(#chr start end is a BED-style header).
pub fn path(&self) -> &str
Sourcepub fn column_index(&self, name: &str) -> Option<usize>
pub fn column_index(&self, name: &str) -> Option<usize>
Index of a column by exact name.
Sourcepub fn has_columns(&self, names: &[&str]) -> bool
pub fn has_columns(&self, names: &[&str]) -> bool
true when every name is a column.
Sourcepub fn find_column(&self, candidates: &[&str]) -> Option<usize>
pub fn find_column(&self, candidates: &[&str]) -> Option<usize>
The first of candidates that is a column: for a field that
different releases spell differently.
Auto Trait Implementations§
impl Freeze for TableReader
impl RefUnwindSafe for TableReader
impl Send for TableReader
impl Sync for TableReader
impl Unpin for TableReader
impl UnsafeUnpin for TableReader
impl UnwindSafe for TableReader
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.