pub struct BlockReader { /* private fields */ }Expand description
Reader for blocks from network
Implementations§
Source§impl BlockReader
impl BlockReader
Sourcepub fn with_compression(self, method: CompressionMethod) -> Self
pub fn with_compression(self, method: CompressionMethod) -> Self
Enable compression
Sourcepub async fn read_block(&self, conn: &mut Connection) -> Result<Block>
pub async fn read_block(&self, conn: &mut Connection) -> Result<Block>
Read a block from the connection.
For compressed connections, ClickHouse may split a single logical block across multiple compressed frames (each frame ≤ max_compress_block_size, typically 1 MB). This method reads frames until the accumulated decompressed data forms a complete block.
Note: Caller is responsible for skipping temp table name if needed (matches C++ ReadBlock / CompressedInput).
Auto Trait Implementations§
impl Freeze for BlockReader
impl RefUnwindSafe for BlockReader
impl Send for BlockReader
impl Sync for BlockReader
impl Unpin for BlockReader
impl UnwindSafe for BlockReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more