Example #1
0
            internal virtual void CreateEmptyIndex <KEY>(TemporalIndexFiles.FileLayout <KEY> fileLayout) where KEY : NativeIndexSingleValueKey <KEY>
            {
                IndexPopulator populator = new TemporalIndexPopulator.PartPopulator <>(PageCache, Fs, fileLayout, Monitor, Descriptor);

                populator.Create();
                populator.Close(true);
            }
Example #2
0
 internal virtual PartAccessor <KEY> CreatePartAccessor <KEY>(TemporalIndexFiles.FileLayout <KEY> fileLayout) where KEY : NativeIndexSingleValueKey <KEY>
 {
     if (!Fs.fileExists(fileLayout.IndexFile))
     {
         CreateEmptyIndex(fileLayout);
     }
     return(new PartAccessor <KEY>(PageCache, Fs, fileLayout, RecoveryCleanupWorkCollector, Monitor, Descriptor, ReadOnly));
 }
Example #3
0
 internal PartPopulator(PageCache pageCache, FileSystemAbstraction fs, TemporalIndexFiles.FileLayout <KEY> fileLayout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER)
 {
 }
Example #4
0
 internal PartAccessor(PageCache pageCache, FileSystemAbstraction fs, TemporalIndexFiles.FileLayout <KEY> fileLayout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, bool readOnly) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER, readOnly)
 {
     this.Layout     = fileLayout.Layout;
     this.Descriptor = descriptor;
     instantiateTree(recoveryCleanupWorkCollector, headerWriter);
 }