pub struct Parquet { /* private fields */ }Expand description
A parquet file kept in a store, answering spans of rows.
ⓘ
let sms = Parquet::at(store, "data/sms")?;
memory.identify("sms", "Parquet");
memory.freeze("sms", Some(sms.version().to_string())); // and it cost no bytesDeclaring it resolves the name and stops there: a graph that names a dataset has not opened it. And it keeps the digest, not the name, so a dataset rebound mid-run does not change what that run is reading — resolving once is what makes the version true.
Implementations§
Source§impl Parquet
impl Parquet
Sourcepub fn at(
store: Arc<dyn Store>,
name: impl Into<String>,
) -> Result<Self, ParquetError>
pub fn at( store: Arc<dyn Store>, name: impl Into<String>, ) -> Result<Self, ParquetError>
The parquet file bound under this name, or why there is none.
One resolve and no bytes: what this costs is what makes stating a
version affordable at all.
Sourcepub fn version(&self) -> &str
pub fn version(&self) -> &str
What this dataset is, for the key of everything computed from it: the digest of the content, which the store had already worked out. This is what lets a source be settled without reading itself.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Parquet
impl !RefUnwindSafe for Parquet
impl Send for Parquet
impl Sync for Parquet
impl Unpin for Parquet
impl UnsafeUnpin for Parquet
impl !UnwindSafe for Parquet
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