Details
-
Sub-task
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
None
-
None
Description
for example something like:
private WeakHashMap<IndexReader, Map<String, int[]>> cache = new WeakHashMap<IndexReader, Map<String, int[]>>();
Map<String, int[]> termDocCache = cache.get(indexReader);
if(termDocCache == null)
etc etc
note that it will be accessed concurrent