Example #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)));
                }
            }
Example #2
0
 public override WorkSyncedNativeIndexPopulator <SpatialIndexKey, NativeIndexValue> NewSpatial(CoordinateReferenceSystem crs)
 {
     return(Create(SpatialIndexFiles.forCrs(crs).LayoutForNewIndex));
 }