vortex_file/segments/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod cache;
pub(crate) mod channel;
pub(crate) mod writer;

pub use cache::*;
use futures::channel::oneshot;
use vortex_buffer::ByteBuffer;
use vortex_error::VortexResult;
use vortex_layout::segments::SegmentId;

#[derive(Debug)]
pub struct SegmentRequest {
    // The ID of the requested segment
    pub id: SegmentId,
    // The one-shot channel to send the segment back to the caller
    pub callback: oneshot::Sender<VortexResult<ByteBuffer>>,
}