mikemccand commented on PR #12345: URL: https://github.com/apache/lucene/pull/12345#issuecomment-1771091088
I don't think you need to wrap `ReaderContext` classes -- you can create your new `TimeoutLeafReader` class, subclassing `FilterLeafReader`, and overriding the methods (likely with additional wrapping on their returned objects?) that are needing added timeouts. Then a call lke `reader().getContext().leaves().reader()` will return your `TimeoutLeafReader` but it will implement all necessary functionality of a `LeafReader`. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
