deltalake_core::storage

Function url_prefix_handler

Source
pub fn url_prefix_handler<T: ObjectStore>(
    store: T,
    prefix: Path,
) -> ObjectStoreRef
Expand description

Simple function to wrap the given ObjectStore in a PrefixStore if necessary

This simplifies the use of the storage since it ensures that list/get/etc operations start from the prefix in the object storage rather than from the root configured URI of the ObjectStore