예제 #1
0
        public void AddPreAllocatedBuffers(NewPageAllocator tablePageAllocator, bool includeDetails)
        {
            if (PreAllocatedBuffers != null)
            {
                throw new InvalidOperationException("Pre allocated buffers already defined");
            }

            PreAllocatedBuffers = StorageReportGenerator.GetReport(tablePageAllocator, includeDetails);

            AllocatedSpaceInBytes += PreAllocatedBuffers.AllocatedSpaceInBytes;

            if (includeDetails)
            {
                var allocationTree = PreAllocatedBuffers.AllocationTree;
                UsedSizeInBytes += (long)(allocationTree.AllocatedSpaceInBytes * allocationTree.Density);
            }
        }
예제 #2
0
        public void AddIndex(Tree tree, bool includeDetails)
        {
            var report = StorageReportGenerator.GetReport(tree, includeDetails);

            AddIndex(report, Constants.Storage.PageSize, includeDetails);
        }
예제 #3
0
        public void AddIndex(FixedSizeTree fst, bool includeDetails)
        {
            var report = StorageReportGenerator.GetReport(fst, includeDetails);

            AddIndex(report, Constants.Storage.PageSize, includeDetails);
        }
예제 #4
0
파일: TableReport.cs 프로젝트: ikvm/ravendb
        public void AddStructure(Tree tree, bool includeDetails)
        {
            var report = _storageGenerator.GetReport(tree, includeDetails);

            AddStructure(report, Constants.Storage.PageSize, includeDetails);
        }
예제 #5
0
        public void AddIndex(Tree tree, bool calculateExactSizes)
        {
            var report = StorageReportGenerator.GetReport(tree, calculateExactSizes);

            AddIndex(report, tree.Llt.PageSize, calculateExactSizes);
        }
예제 #6
0
        public void AddIndex(FixedSizeTree fst, bool calculateExactSizes)
        {
            var report = StorageReportGenerator.GetReport(fst, calculateExactSizes);

            AddIndex(report, fst.Llt.PageSize, calculateExactSizes);
        }
예제 #7
0
        public void AddStructure(Tree tree, bool calculateExactSizes)
        {
            var report = StorageReportGenerator.GetReport(tree, calculateExactSizes);

            AddStructure(report, Constants.Storage.PageSize, calculateExactSizes);
        }