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