Esempio n. 1
0
        public DataContainerStats GetStats()
        {
            CheckHaveDescriptor();
            var stats = new DataContainerStats();

            foreach (var doc in m_descriptor.EnumerateDocumentTypes())
            {
                stats.SetDocumentCount(doc.DocumentType, m_dataContainer.RequireDocumentContainer(doc.DocumentType).UntrimmedCount);
            }

            return(stats);
        }
Esempio n. 2
0
        public void WriteStatsToStore()
        {
            var stats = new DataContainerStats();

            foreach (var pair in m_documentDataContainers)
            {
                var docStore = RequireDocumentContainer(pair.Key);
                stats.SetDocumentCount(pair.Key, docStore.UntrimmedCount);
            }

            WriteStatsToStore(stats, m_storageRoot);
        }