Class PgSphereTranslator

All Implemented Interfaces:
ADQLTranslator

public class PgSphereTranslator extends PostgreSQLTranslator
Translates all ADQL objects into the SQL adaptation of Postgres+PgSphere.

Actually only the geometrical functions and types are translated in this class. The other functions are managed by PostgreSQLTranslator.

Implementation note: The preferred xmatch syntax described in the section 4.2.7 of the ADQL standard (here ADQL-2.1) is implemented here so that such query is as efficient as a CONTAINS(POINT(...), CIRCLE(...)) = 1. See translate(adql.query.constraint.Comparison) for more details.