Package com.complexible.stardog.spatial

# Interface GeospatialIndexFactory

public interface GeospatialIndexFactory

Factory for creating instances of `GeospatialIndex`

Since:
  4.0
Version:
  4.0
Author:
  Michael Grove

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GeospatialIndex`
  `open(File theFile, Supplier<Metadata> theMetadata)`
  Open a disk-based spatial index.
  `GeospatialIndex`
  `open(Supplier<Metadata> theMetadata)`
  Open a new in-memory spatial index

- ## Method Details

  - ### open

    GeospatialIndex open(Supplier<Metadata> theMetadata) throws GeoException
    Open a new in-memory spatial index
    Returns:
      the new index
    Throws:
      `GeoException`

  - ### open

    GeospatialIndex open(File theFile, Supplier<Metadata> theMetadata) throws GeoException
    Open a disk-based spatial index. If an index does not exist in the given location, a new one will be automatically created
    Parameters:
      `theFile` - the file
    Returns:
      the index
    Throws:
      `GeoException`