pub fn column_names(&self, selection: Selection<'_>) -> Option<BTreeSet<String>> {
        let fields = self.table_schema.inner().fields().iter();

        Some(match selection {
            Selection::Some(cols) => fields
                .filter_map(|x| {
                    if cols.contains(&x.name().as_str()) {
                        Some(x.name().clone())
                    } else {
                        None
                    }
                })
                .collect(),
            Selection::All => fields.map(|x| x.name().clone()).collect(),
        })
    }
// Return columns names of this table that belong to the given column selection
Return columns names of this table that belong to the given column selection
Return columns names of this table that belong to the given column selection
pub fn column_names(&self, selection: Selection<'_>) -> Option<BTreeSet<String>> {
        let fields = self.table_schema.inner().fields().iter();
        Some(match selection {
            Selection::Some(cols) => fields
                .filter_map(|x| {
                    if cols.contains(&x.name().as_str()) {
                        Some(x.name().clone())
                    } else {
                        None
                    }
                })
                .collect(),
            Selection::All => fields.map(|x| x.name().clone()).collect(),
        })
    }
pub fn column_names ( & self , selection : Selection < ' _ > ) -> Option < BTreeSet < String > > { let fields = self . table_schema . inner ( ) . fields ( ) . iter ( ) ; Some ( match selection { Selection :: Some ( cols ) => fields . filter_map ( | x | { if cols . contains ( & x . name ( ) . as_str ( ) ) { Some ( x . name ( ) . clone ( ) ) } else { None } } ) . collect ( ) , Selection :: All => fields . map ( | x | x . name ( ) . clone ( ) ) . collect ( ) , } ) }
Return columns names of this table that belong to the given column selection
Return columns names of this table that belong to the given column selection
&self
selection
Selection<'_>
&self
selection
Selection<'_>