Package com.complexible.stardog.spatial
Class GeospatialIndexMetadata
- java.lang.Object
-
- com.complexible.stardog.spatial.GeospatialIndexMetadata
-
public final class GeospatialIndexMetadata extends java.lang.Object
Utility class for reading the metadata about a spatial index
- Since:
- 4.0
- Version:
- 4.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Metadata
read(java.nio.file.Path theDir)
Read the index metadata from the given index directorystatic void
write(java.io.File theDir, Metadata theMeta)
Write the metadata to the given metadata file in the given directory
-
-
-
Method Detail
-
read
public static Metadata read(java.nio.file.Path theDir) throws java.io.IOException
Read the index metadata from the given index directory- Parameters:
theDir
- the index directory to read from- Returns:
- the metadata in the file
- Throws:
java.io.IOException
- if there was an error while reading
-
write
public static void write(java.io.File theDir, Metadata theMeta) throws java.io.IOException
Write the metadata to the given metadata file in the given directory- Parameters:
theDir
- the index directory to save the metadata information totheMeta
- the metadata to write- Throws:
java.io.IOException
- if there was an error while writing
-
-