×

Querying spatial data in column stores using grid-order scans

  • US 10,380,130 B2
  • Filed: 06/27/2017
  • Issued: 08/13/2019
  • Est. Priority Date: 05/09/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method implemented on one or more systems comprising one or more programmable processors, the method comprising:

  • mapping spatial data stored in a database comprising a columnar data store storing the spatial data in a column-oriented structure, the mapping comprising preserving spatial proximity of a plurality of spatial point objects when the spatial data are physically stored using a grid ordering comprising;

    dividing a bounded space containing the plurality of spatial point objects into a grid having fixed boundaries and comprising rectangular cells, andindexing the cells of the grid, wherein the indexing comprises assigning each spatial point object of the plurality of spatial point objects to a particular cell of the grid, assigning one or more bounding boxes to one or more of the cells, maintaining a record of the assignment of the one or more bounding boxes to the one or more of the cells, and creating index vectors to represent the cells of the grid,wherein assigning one or more bounding boxes to one or more of the cells comprises assigning a bounding box to a cell if the bounding box intersects a predefined number of adjacent cells with respect to a single characteristic point of the bounding box, and assigning the bounding box to an overflow cell if the intersection of the bounding box exceeds the predefined cellsize;

    receiving a query of the spatial data and checking overflow cell for every received query;

    identifying a target bounding box based on the received query of the spatial data, the identifying comprising scanning the cells of the grid using the index vectors and return bit vector to check valid entries;

    determining, based on the mapping and the identified target bounding box, a spatial data set corresponding to the received query and a physical storage location in the database from which to retrieve the spatial data set;

    retrieving the spatial data set from the physical storage location based on the determining and in response to the received query of the spatial data; and

    providing the retrieved spatial data set in response to the received query of the spatial data.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×