mz_storage_operators::oneshot_source

Trait OneshotObject

Source
pub trait OneshotObject {
    // Required methods
    fn name(&self) -> &str;
    fn size(&self) -> usize;
    fn encodings(&self) -> &[Encoding];
}
Expand description

An object that will be fetched from a OneshotSource.

Required Methods§

Source

fn name(&self) -> &str

Name of the object, including any extensions.

Source

fn size(&self) -> usize

Size of this object in bytes.

Source

fn encodings(&self) -> &[Encoding]

Encodings of the entire object, if any.

Note: The object may internally use compression, e.g. a Parquet file could compress its column chunks, but if the Parquet file itself is not compressed then this would return None.

Implementors§