The scan context allows to optimize readers we already processed during scanning. We do that by keeping track of the count per reader, and if we are done with it, we no longer process it by using a filter that returns null docIdSet for this reader.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.