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

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