Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12480

Support for Spatial Queries

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Blocker
    • None
    • 11.0.4.Final
    • None
    • None
    • Undefined

    Description

      Due to the API changes from Infinispan 9 to Infinispan 11, it seems to me that it is no longer possible to use Infinispan to query a spatial index. In version 9, I was using the following code to query a large number of weather forecasts generated by a weather simulation:

      QueryBuilder qb = manager.buildQueryBuilderForClass(WeatherForecastContainer.class).get();
      Query query = qb.spatial().within(50, Unit.KM)
      {{ .ofLatitude(location.getLatitude()).andLongitude(location.getLongitude())}}
      {{ .createQuery();}}

      ...

      manager.getQuery(query, WeatherForecastContainer.class).maxResults(limit).sort(order).list()

      ...

      This works great, even for a global simulation model with several million entries. However, the documentation in version 11 refers to Ickle queries as the new approach for building queries but as far as I understand it, they do not provide any construct for spatial queries. If this is correct, version 11 effectively removes support for spatial data. Is this intentional or am I missing something?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              handte Marcus Handte (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: