I made this `pub` as I think it could be useful for other data sources. I do think we should move this + `PruningPredicate` stuff into a `datafusion-pruning` create or something. _Originally posted by @adriangb in https://github.com/apache/datafusion/pull/16424#discussion_r2150394841_