31 Commits

Author SHA1 Message Date
521f40e36e Fixed most tests 2024-08-11 14:34:45 +02:00
c14c6cb91a Updated compiler and dependencies
* Upgraded to rustc 1.80
 * Updated dependencies
 * Fixed most linter warnings
2024-08-11 08:15:20 +02:00
2566cac17f Use iterators instead of materialized values 2021-03-01 08:40:02 +01:00
8a00180eb0 Update dependencies 2021-03-01 08:40:02 +01:00
8492fed85e Update the parser imports 2020-07-25 09:23:10 +02:00
69fbc9fdd8 Set the volume in the parser for Filters
When no volume is provided, create by default a volume containing the
whole space.

This simplifies handling later on, as there is no checks and on-the-fly
generation of that value necessary. This also remove life time issues as
the volume is always present with the same life time as the rest of the
Filter.
2020-07-25 08:49:36 +02:00
e4cbdf836f Rename library to mercator_parser 2020-04-01 18:14:45 +02:00
242de73053 Adding documentation 2020-04-01 17:06:52 +02:00
98b37e63b4 Silence warning in generated code 2020-03-17 17:18:50 +01:00
e2ea5c9ba4 Introduce Label for search within id
This allows to define a volume using an indexed object.
2020-03-16 13:48:01 +01:00
0dc31c65c6 Remove some .unwrap() calls.
The parser still contains three calls to `unwrap()`, but a this point
I have not yet figured out how to remove them.
2020-01-20 14:53:09 +01:00
e8d931b551 Prevent unsafe blocks for now 2020-01-20 14:53:09 +01:00
b8baee8019 Reduce dependencies. 2020-01-14 18:10:08 +01:00
f95aaa389b Updating test index to new format 2019-11-14 15:30:57 +01:00
a31ce4387f Prevent some allocations 2019-11-13 11:04:29 +01:00
926b879426 Fixes 2019-10-30 17:44:52 +01:00
e1547206e2 Updating to new Index<> API 2019-10-29 15:13:19 +01:00
8dd9250dbb Maybe do not wrap at the top-level 2019-10-18 12:27:30 +02:00
661abbc9f4 Add a new symbol, ViewPort
This is used to wrap the filters within an implicit bounding box,
which corresponds to the view port optionally provided by the users.

The intersection is automatically computed between the query results
and the ViewPort, whenever it is specified.
2019-10-18 12:27:30 +02:00
927feb0297 Actually use the smallest value possible 2019-10-18 12:27:30 +02:00
a42492463c Update to latest mercator_db API 2019-10-08 12:38:09 +02:00
b5daa52284 Update to current mercator_db version 2019-10-04 20:01:16 +02:00
e156b03538 Adapted to API change for CoreQueryParameters
mercator_db API was modified to simplify parameter management.
2019-10-03 14:47:38 +02:00
7b8193e7bd Wee bit early to disable trace logs for release build 2019-09-16 17:29:40 +02:00
2b4eb67b9e Refactor & Connect to mercator_db
* Refactor the code, Update to the Service API REST JSON objects on disk.
 * Connect to the DB data model and engine to execute queries.
 * Remove the syntactic sugar around implicit `inside` operation on
   shapes, as it introduces issues.
2019-09-12 10:27:35 +02:00
6ed76e485e Parser implementation
* Adaptation of the grammar to make more regular w.r.t reference space
   names placement.

 * Implemented Type check

 * Implemented prediction of the result set cardinality. This assumes:
    + A space is not infinite, this is required to compute complementary
      sets as we can compute the whole space volume.
    + Density is mostly uniform, this allows us to assume the number of
      results is related with a constant factor to the volume in space
      of the selection.
    + The prediction is approximated by using the most pessimistic
      resulting cardinality for each operator, in order to keep the
      operation simple, and fast, at the expense of the precision.

 * Implemented execution, which calls into a DB abstraction layer. That
   layer is currently mostly empty. Execution is also implemented in a
   naive way, and should most likely be optimised.
2019-09-10 14:38:31 +02:00
0eaa7839cf Add timing info & use log for output 2019-09-10 14:38:31 +02:00
a14f145856 Rust Parser v1 2019-09-10 14:38:29 +02:00
32b35602fb Grammars, v1 2019-09-10 14:37:56 +02:00
978d29bbbe Ignore generated files 2019-09-10 14:37:10 +02:00
2f0b7e455c Licenses and acknowledgements 2019-09-10 14:35:20 +02:00