pub struct EngramRowReader { /* private fields */ }Expand description
Row reads from the engram tables. The tables are ~30 GiB each and a token
touches 24 rows per table, so nothing is cached: every call is ids.len()
positional reads of one block.
Implementations§
Source§impl EngramRowReader
impl EngramRowReader
pub fn new(files: Arc<ShardFiles>) -> Result<Self>
pub fn tables(&self) -> &[EngramTable]
pub fn table(&self, layer: usize) -> Option<&EngramTable>
Auto Trait Implementations§
impl Freeze for EngramRowReader
impl RefUnwindSafe for EngramRowReader
impl Send for EngramRowReader
impl Sync for EngramRowReader
impl Unpin for EngramRowReader
impl UnwindSafe for EngramRowReader
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