Interface SpatialIndex

All Known Implementing Classes:
SpatialIndexAdapterV1, SpatialIndexPerGraph

public interface SpatialIndex
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    Returns the number of items in the index.
     
    boolean
     
    Collection<org.apache.jena.graph.Node>
    query(org.locationtech.jts.geom.Envelope searchEnvelope, org.apache.jena.graph.Node graph)
    Query the index for all matching items in the given graph.
    void
    setLocation(Path location)
     
  • Method Details

    • getSrsInfo

      SRSInfo getSrsInfo()
      Returns:
      Information about the SRS used by the SpatialIndex.
    • isEmpty

      boolean isEmpty()
      Returns:
      True if the SpatialIndex is empty.
    • getSize

      long getSize()
      Returns the number of items in the index.
    • query

      Collection<org.apache.jena.graph.Node> query(org.locationtech.jts.geom.Envelope searchEnvelope, org.apache.jena.graph.Node graph)
      Query the index for all matching items in the given graph. The default graph can be referenced with null or any value for which Quad.isDefaultGraph() returns true. The union graph (= all named graphs but not the default graph) can be referenced with Quad.unionGraph.
      Parameters:
      searchEnvelope - The bounding box for which to find overlapping items.
      graph - The graph to which to restrict the query.
      Returns:
      The collection of nodes whose envelopes overlap with the search envelope.
    • getLocation

      Path getLocation()
    • setLocation

      void setLocation(Path location)