lucene/lucene/test-framework
Adrien Grand edd7747370
Add prefetching support to stored fields. (#13424)
This adds `StoredFields#prefetch(int)`, which mostly delegates to
`IndexInput#prefetch`. Callers can take advantage of this API to parallelize
I/O across multiple stored documents by first calling `StoredFields#prefetch`
on all doc IDs before calling `StoredFields#document` on all doc IDs.

I added a cache of recently prefetched blocks to the default codec, in order to
avoid prefetching the same block multiple times in a short period of time. This
felt sensible given that doc ID reordering via recursive graph bisection or
index sorting are likely to result in search results being clustered.
2024-06-03 09:25:23 +02:00
..
src Add prefetching support to stored fields. (#13424) 2024-06-03 09:25:23 +02:00
build.gradle LUCENE-10301: make the test-framework a proper module by moving all test 2021-12-21 20:30:45 +01:00