예제 #1
0
 internal ScoreCachingCollector(ICollector other, int maxDocsToCache)
     : base(other, maxDocsToCache)
 {
     cachedScorer = new CachedScorer();
     cachedScores = new List <float[]>();
     curScores    = new float[INITIAL_ARRAY_SIZE];
     cachedScores.Add(curScores);
 }
예제 #2
0
 internal ScoreCachingCollector(ICollector other, double maxRAMMB)
     : base(other, maxRAMMB, true)
 {
     cachedScorer = new CachedScorer();
     cachedScores = new List <float[]>();
     curScores    = new float[INITIAL_ARRAY_SIZE];
     cachedScores.Add(curScores);
 }