pub fn partition(
        &self,
        table_name: impl AsRef<str>,
        partition_key: impl AsRef<str>,
    ) -> Result<Arc<RwLock<Partition>>> {
        let table_name = table_name.as_ref();
        let partition_key = partition_key.as_ref();

        self.table(table_name)?
            .partition(partition_key)
            .cloned()
            .context(PartitionNotFound {
                partition: partition_key,
                table: table_name,
            })
    }
/// Get a specific partition by name, returning an error if it can't be found
Get a specific partition by name, returning an error if it can't be found
Get a specific partition by name returning an error if it can ' t be found
pub fn partition(
        &self,
        table_name: impl AsRef<str>,
        partition_key: impl AsRef<str>,
    ) -> Result<Arc<RwLock<Partition>>> {
        let table_name = table_name.as_ref();
        let partition_key = partition_key.as_ref();
        self.table(table_name)?
            .partition(partition_key)
            .cloned()
            .context(PartitionNotFound {
                partition: partition_key,
                table: table_name,
            })
    }
pub fn partition ( & self , table_name : impl AsRef < str > , partition_key : impl AsRef < str > , ) -> Result < Arc < RwLock < Partition > > > { let table_name = table_name . as_ref ( ) ; let partition_key = partition_key . as_ref ( ) ; self . table ( table_name ) ? . partition ( partition_key ) . cloned ( ) . context ( PartitionNotFound { partition : partition_key , table : table_name , } ) }
Get a specific partition by name, returning an error if it can't be found
Get a specific partition by name returning an error if it can ' t be found
&self
table_name
impl AsRef<str>
partition_key
impl AsRef<str>
&self
table_name
impl AsRef<str>
partition_key
impl AsRef<str>