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); } }
public void AddIndex(Tree tree, bool includeDetails) { var report = StorageReportGenerator.GetReport(tree, includeDetails); AddIndex(report, Constants.Storage.PageSize, includeDetails); }
public void AddIndex(FixedSizeTree fst, bool includeDetails) { var report = StorageReportGenerator.GetReport(fst, includeDetails); AddIndex(report, Constants.Storage.PageSize, includeDetails); }
public void AddStructure(Tree tree, bool includeDetails) { var report = _storageGenerator.GetReport(tree, includeDetails); AddStructure(report, Constants.Storage.PageSize, includeDetails); }
public void AddIndex(Tree tree, bool calculateExactSizes) { var report = StorageReportGenerator.GetReport(tree, calculateExactSizes); AddIndex(report, tree.Llt.PageSize, calculateExactSizes); }
public void AddIndex(FixedSizeTree fst, bool calculateExactSizes) { var report = StorageReportGenerator.GetReport(fst, calculateExactSizes); AddIndex(report, fst.Llt.PageSize, calculateExactSizes); }
public void AddStructure(Tree tree, bool calculateExactSizes) { var report = StorageReportGenerator.GetReport(tree, calculateExactSizes); AddStructure(report, Constants.Storage.PageSize, calculateExactSizes); }