pub trait FileMetadata:
Any
+ Send
+ Sync {
// Required methods
fn as_any(&self) -> &dyn Any;
fn memory_size(&self) -> usize;
fn extra_info(&self) -> HashMap<String, String>;
}
Expand description
Generic file-embedded metadata used with FileMetadataCache
.
For example, Parquet footers and page metadata can be represented using this trait.
See crate::runtime_env::RuntimeEnv
for more details
Required Methods§
Sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the file metadata as Any
so that it can be downcast to a specific
implementation.
Sourcefn memory_size(&self) -> usize
fn memory_size(&self) -> usize
Returns the size of the metadata in bytes.
Sourcefn extra_info(&self) -> HashMap<String, String>
fn extra_info(&self) -> HashMap<String, String>
Returns extra information about this entry (used by FileMetadataCache::list_entries
).