pub trait ExtObjectStoreBuilder {
// Required method
fn build(
&self,
url: &PlRefPath,
options: Option<&CloudOptions>,
) -> Result<Arc<dyn ObjectStore + Send + Sync>, PolarsError>;
// Provided method
fn stable_cache_key(
&self,
_url: &PlRefPath,
_options: Option<&CloudOptions>,
) -> Option<Vec<u8>> { ... }
}Available on crate feature
polars-io only.Expand description
Trait for external ObjectStore builder (e.g., for HDFS). Unstable.
Required Methods§
Sourcefn build(
&self,
url: &PlRefPath,
options: Option<&CloudOptions>,
) -> Result<Arc<dyn ObjectStore + Send + Sync>, PolarsError>
fn build( &self, url: &PlRefPath, options: Option<&CloudOptions>, ) -> Result<Arc<dyn ObjectStore + Send + Sync>, PolarsError>
Build new object_store.
Provided Methods§
Sourcefn stable_cache_key(
&self,
_url: &PlRefPath,
_options: Option<&CloudOptions>,
) -> Option<Vec<u8>>
fn stable_cache_key( &self, _url: &PlRefPath, _options: Option<&CloudOptions>, ) -> Option<Vec<u8>>
Return a stable cache key for this store.
Defaults to None, which uses the default key (URL authority + serialised CloudOptions).