criccomini commented on PR #348:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/348#issuecomment-2873564573

   Ok, I have simplified things quite a bit. The `DefaultObjectStoreRegistry` 
is now pretty dumb. It just does exact matching, so all prefixes are treated as 
exact URLs.
   
   I also added a method `get_url` to the registry trait. The default 
imnplementation scans the map looking for a matching URL and returns the 
`ObjectStore` if it finds one. I played with using a bimap, but I didn't want 
to add a dependency and I couldn't find a nice way to make `Arc<dyn 
ObjectStore>` play nicely as a key. I figure a scan is nice and simple for a 
default impl.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to