Exemple #1
0
//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)));
                }
            }
Exemple #2
0
 internal override NativeIndexPopulator <SpatialIndexKey, NativeIndexValue> CreatePopulator()
 {
     _spatialFile = new SpatialIndexFiles.SpatialFile(_crs, _configuredSettings, base.IndexFile);
     return(new SpatialIndexPopulator.PartPopulator(pageCache, fs, _spatialFile.LayoutForNewIndex, monitor, indexDescriptor, new StandardConfiguration()));
 }
 internal override NativeIndexAccessor <SpatialIndexKey, NativeIndexValue> MakeAccessor()
 {
     _spatialFile = new SpatialIndexFiles.SpatialFile(CoordinateReferenceSystem.WGS84, _configuredSettings, base.IndexFile);
     return(new SpatialIndexAccessor.PartAccessor(pageCache, fs, _spatialFile.LayoutForNewIndex, immediate(), monitor, indexDescriptor, new StandardConfiguration(), false));
 }