//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void createEmptyIndex(org.neo4j.storageengine.api.schema.StoreIndexDescriptor schemaIndexDescriptor, org.neo4j.kernel.impl.index.schema.config.ConfiguredSpaceFillingCurveSettingsCache configuredSettings) throws java.io.IOException private void CreateEmptyIndex(StoreIndexDescriptor schemaIndexDescriptor, ConfiguredSpaceFillingCurveSettingsCache configuredSettings) { SpatialIndexFiles.SpatialFileLayout fileLayout = MakeIndexFile(schemaIndexDescriptor.Id, configuredSettings).LayoutForNewIndex; SpatialIndexPopulator.PartPopulator populator = new SpatialIndexPopulator.PartPopulator(_pageCache, Fs, fileLayout, _monitor, schemaIndexDescriptor, new StandardConfiguration()); populator.Create(); populator.Close(true); }
internal virtual void CreateEmptyIndex(SpatialIndexFiles.SpatialFileLayout fileLayout) { IndexPopulator populator = new SpatialIndexPopulator.PartPopulator(PageCache, Fs, fileLayout, Monitor, Descriptor, SearchConfiguration); populator.Create(); populator.Close(true); }
internal PartAccessor(PageCache pageCache, FileSystemAbstraction fs, SpatialIndexFiles.SpatialFileLayout fileLayout, RecoveryCleanupWorkCollector recoveryCleanupWorkCollector, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, SpaceFillingCurveConfiguration searchConfiguration, bool readOnly) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER, readOnly) { this.Layout = fileLayout.Layout; this.Descriptor = descriptor; this.SearchConfiguration = searchConfiguration; this.Crs = fileLayout.SpatialFile.crs; this.Settings = fileLayout.Settings; instantiateTree(recoveryCleanupWorkCollector, HeaderWriter); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public PartAccessor newSpatial(org.neo4j.values.storable.CoordinateReferenceSystem crs) throws java.io.IOException public override PartAccessor NewSpatial(CoordinateReferenceSystem crs) { SpatialIndexFiles.SpatialFile spatialFile = SpatialIndexFiles.forCrs(crs); if (!Fs.fileExists(spatialFile.IndexFile)) { SpatialIndexFiles.SpatialFileLayout fileLayout = spatialFile.LayoutForNewIndex; CreateEmptyIndex(fileLayout); return(CreatePartAccessor(fileLayout)); } else { return(CreatePartAccessor(spatialFile.GetLayoutForExistingIndex(PageCache))); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private PartAccessor createPartAccessor(SpatialIndexFiles.SpatialFileLayout fileLayout) throws java.io.IOException internal virtual PartAccessor CreatePartAccessor(SpatialIndexFiles.SpatialFileLayout fileLayout) { return(new PartAccessor(PageCache, Fs, fileLayout, RecoveryCleanupWorkCollector, Monitor, Descriptor, SearchConfiguration, ReadOnly)); }
internal virtual WorkSyncedNativeIndexPopulator <SpatialIndexKey, NativeIndexValue> Create(SpatialIndexFiles.SpatialFileLayout fileLayout) { PartPopulator populator = new PartPopulator(PageCache, Fs, fileLayout, Monitor, Descriptor, Configuration); populator.Create(); return(new WorkSyncedNativeIndexPopulator <SpatialIndexKey, NativeIndexValue>(populator)); }
internal PartPopulator(PageCache pageCache, FileSystemAbstraction fs, SpatialIndexFiles.SpatialFileLayout fileLayout, IndexProvider.Monitor monitor, StoreIndexDescriptor descriptor, SpaceFillingCurveConfiguration configuration) : base(pageCache, fs, fileLayout.IndexFile, fileLayout.Layout, monitor, descriptor, NO_HEADER_WRITER) { this.Configuration = configuration; this.Settings = fileLayout.Settings; this.Crs = fileLayout.SpatialFile.crs; }