pub fn expire_on_newly_persisted_files(
        &self,
        table_id: TableId,
        max_parquet_sequence_number: Option<SequenceNumber>,
    ) -> bool {
        if let Some(max_parquet_sequence_number) = max_parquet_sequence_number {
            // check backend cache to see if the maximum sequence
            // number desired is less than what we know about
            self.backend.remove_if(&table_id, |cached_file| {
                let max_cached = cached_file.max_parquet_sequence_number();

                if let Some(max_cached) = max_cached {
                    max_cached < max_parquet_sequence_number
                } else {
                    // a max sequence was provided but there were no
                    // files in the cache. Means we need to refresh
                    true
                }
            })
        } else {
            false
        }
    }
/// Clear the parquet file cache if the cache does not contain any
/// files that have the specified `max_parquet_sequence_number`.
///
/// If `None` is passed, returns false and does not clear the cache.
///
/// Returns true if the cache was cleared (it will be refreshed on
/// the next call to get).
///
/// This API is designed to be called with a response from the
/// ingster so there is a single place were the invalidation logic
/// is handled. An `Option` is accepted because the ingester may
/// or may or may not have a `max_parquet_sequence_number`.
///
/// If a `max_parquet_sequence_number` is supplied that is not in
/// our cache, it means the ingester has written new data to the
/// catalog and the cache is out of date.
Clear the parquet file cache if the cache does not contain any
files that have the specified `max_parquet_sequence_number`.

If `None` is passed, returns false and does not clear the cache.

Returns true if the cache was cleared (it will be refreshed on
the next call to get).

This API is designed to be called with a response from the
ingster so there is a single place were the invalidation logic
is handled. An `Option` is accepted because the ingester may
or may or may not have a `max_parquet_sequence_number`.

If a `max_parquet_sequence_number` is supplied that is not in
our cache, it means the ingester has written new data to the
catalog and the cache is out of date.
Clear the parquet file cache if the cache does not contain any files that have the specified ` max_parquet_sequence_number ` . If ` None ` is passed returns false and does not clear the cache . Returns true if the cache was cleared ( it will be refreshed on the next call to get ) . This API is designed to be called with a response from the ingster so there is a single place were the invalidation logic is handled . An ` Option ` is accepted because the ingester may or may or may not have a ` max_parquet_sequence_number ` . If a ` max_parquet_sequence_number ` is supplied that is not in our cache it means the ingester has written new data to the catalog and the cache is out of date .
pub fn expire_on_newly_persisted_files(
        &self,
        table_id: TableId,
        max_parquet_sequence_number: Option<SequenceNumber>,
    ) -> bool {
        if let Some(max_parquet_sequence_number) = max_parquet_sequence_number {
            // check backend cache to see if the maximum sequence
            // number desired is less than what we know about
            self.backend.remove_if(&table_id, |cached_file| {
                let max_cached = cached_file.max_parquet_sequence_number();
                if let Some(max_cached) = max_cached {
                    max_cached < max_parquet_sequence_number
                } else {
                    // a max sequence was provided but there were no
                    // files in the cache. Means we need to refresh
                    true
                }
            })
        } else {
            false
        }
    }
pub fn expire_on_newly_persisted_files ( & self , table_id : TableId , max_parquet_sequence_number : Option < SequenceNumber > , ) -> bool { if let Some ( max_parquet_sequence_number ) = max_parquet_sequence_number { // check backend cache to see if the maximum sequence // number desired is less than what we know about self . backend . remove_if ( & table_id , | cached_file | { let max_cached = cached_file . max_parquet_sequence_number ( ) ; if let Some ( max_cached ) = max_cached { max_cached < max_parquet_sequence_number } else { // a max sequence was provided but there were no // files in the cache. Means we need to refresh true } } ) } else { false } }
Clear the parquet file cache if the cache does not contain any
files that have the specified `max_parquet_sequence_number`.
Clear the parquet file cache if the cache does not contain any files that have the specified ` max_parquet_sequence_number ` .
&self
table_id
TableId
max_parquet_sequence_number
Option<SequenceNumber>
&self
table_id
TableId
max_parquet_sequence_number
Option<SequenceNumber>