pub fn filtered_chunks<'a>(
        &'a self,
        table_names: TableNameFilter<'a>,
    ) -> impl Iterator<Item = &Arc<RwLock<Chunk>>> + 'a {
        self.tables
            .iter()
            .filter_map(
                move |(partition_table_name, partition_table)| match table_names {
                    TableNameFilter::AllTables => Some(partition_table.chunks.values()),
                    TableNameFilter::NamedTables(table_names) => table_names
                        .contains(partition_table_name)
                        .then(|| partition_table.chunks.values()),
                },
            )
            .flatten()
    }
/// Return an iterator over chunks in this partition
///
/// `table_names` specifies which tables to include
Return an iterator over chunks in this partition
`table_names` specifies which tables to include
Return an iterator over chunks in this partition ` table_names ` specifies which tables to include
pub fn filtered_chunks<'a>(
        &'a self,
        table_names: TableNameFilter<'a>,
    ) -> impl Iterator<Item = &Arc<RwLock<Chunk>>> + 'a {
        self.tables
            .iter()
            .filter_map(
                move |(partition_table_name, partition_table)| match table_names {
                    TableNameFilter::AllTables => Some(partition_table.chunks.values()),
                    TableNameFilter::NamedTables(table_names) => table_names
                        .contains(partition_table_name)
                        .then(|| partition_table.chunks.values()),
                },
            )
            .flatten()
    }
pub fn filtered_chunks < ' a > ( & ' a self , table_names : TableNameFilter < ' a > , ) -> impl Iterator < Item = & Arc < RwLock < Chunk > > > + ' a { self . tables . iter ( ) . filter_map ( move | ( partition_table_name , partition_table ) | match table_names { TableNameFilter :: AllTables => Some ( partition_table . chunks . values ( ) ) , TableNameFilter :: NamedTables ( table_names ) => table_names . contains ( partition_table_name ) . then ( | | partition_table . chunks . values ( ) ) , } , ) . flatten ( ) }
Return an iterator over chunks in this partition
`table_names` specifies which tables to include
Return an iterator over chunks in this partition ` table_names ` specifies which tables to include
&'a self
table_names
TableNameFilter<'a>
&'a self
table_names
TableNameFilter<'a>