Lucene.Net.Search.CachingCollector.CachingCollector C# (CSharp) Метод

CachingCollector() приватный Метод

private CachingCollector ( Collector other, double maxRAMMB, bool cacheScores ) : System.Collections.Generic
other Collector
maxRAMMB double
cacheScores bool
Результат System.Collections.Generic
        private CachingCollector(Collector other, double maxRAMMB, bool cacheScores)
        {
            this.Other = other;

            CachedDocs = new List<int[]>();
            CurDocs = new int[INITIAL_ARRAY_SIZE];
            CachedDocs.Add(CurDocs);

            int bytesPerDoc = RamUsageEstimator.NUM_BYTES_INT;
            if (cacheScores)
            {
                bytesPerDoc += RamUsageEstimator.NUM_BYTES_FLOAT;
            }
            MaxDocsToCache = (int)((maxRAMMB * 1024 * 1024) / bytesPerDoc);
        }

Same methods

CachingCollector::CachingCollector ( Collector other, int maxDocsToCache ) : System.Collections.Generic