fn try_new()

in src/columnar_storage/src/manifest/encoding.rs [212:237]


    fn try_new<R>(mut reader: R) -> Result<Self>
    where
        R: Read,
    {
        let id = reader
            .read_u64::<LittleEndian>()
            .context("read record id")?;
        let start = reader
            .read_i64::<LittleEndian>()
            .context("read record start")?;
        let end = reader
            .read_i64::<LittleEndian>()
            .context("read record end")?;
        let size = reader
            .read_u32::<LittleEndian>()
            .context("read record size")?;
        let num_rows = reader
            .read_u32::<LittleEndian>()
            .context("read record num_rows")?;
        Ok(SnapshotRecord {
            id,
            time_range: (start..end).into(),
            size,
            num_rows,
        })
    }