Package | Description |
---|---|
adql.db | |
adql.db.exception | |
adql.parser | |
adql.query.operand.function.geometry | |
adql.translator |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
STCS.buildCoordSysRegExp(java.lang.String[] allowedCoordSys)
Build a big regular expression gathering all of the given coordinate system syntaxes.
|
void |
DBChecker.check(ADQLQuery query)
Check all the columns, tables and UDFs references inside the given query.
|
protected DBColumn |
DBChecker.checkColumnReference(ColumnReference colRef,
ClauseSelect select,
SearchColumnList dbColumns)
Check whether the given column reference corresponds to a selected item (column or an expression with an alias)
or to an existing column.
|
protected DBColumn |
DBChecker.checkGroupByItem(ADQLColumn col,
ClauseSelect select,
SearchColumnList dbColumns)
Check whether the given column corresponds to a selected item's alias or to an existing column.
|
static DBTable |
DBChecker.generateDBTable(ADQLQuery subQuery,
java.lang.String tableName)
Generate a
DBTable corresponding to the given sub-query with the given table name. |
static FunctionDef |
FunctionDef.parse(java.lang.String strDefinition)
Let parsing the serialized form of a function definition.
|
static STCS.CoordSys |
STCS.parseCoordSys(java.lang.String stcs)
Parse the given STC-S representation of a coordinate system.
|
static STCS.Region |
STCS.parseRegion(java.lang.String stcsRegion)
Parse the given STC-S expression representing a geometrical region.
|
protected DBColumn |
DBChecker.resolveColumn(ADQLColumn column,
SearchColumnList dbColumns,
java.util.Stack<SearchColumnList> fathersList)
Resolve the given column, that's to say search for the corresponding
DBColumn . |
protected DBTable |
DBChecker.resolveTable(ADQLTable table)
Resolve the given table, that's to say search for the corresponding
DBTable . |
static java.lang.String |
STCS.toSTCS(GeometryFunction region)
Convert into STC-S the given ADQL representation of a geometrical function.
|
Constructor and Description |
---|
CoordSys(java.lang.String coordsys)
Build a coordinate system by parsing the given STC-S expression.
|
DBChecker(java.util.Collection<? extends DBTable> tables,
java.util.Collection<? extends FunctionDef> allowedUdfs,
java.util.Collection<java.lang.String> allowedGeoFcts,
java.util.Collection<java.lang.String> allowedCoordSys)
Builds a
DBChecker . |
DBChecker(java.util.Collection<? extends DBTable> tables,
java.util.Collection<java.lang.String> allowedGeoFcts,
java.util.Collection<java.lang.String> allowedCoordSys)
Builds a
DBChecker with the given list of known tables and with a restricted list of user defined functions. |
Region(GeometryFunction geometry)
Build a Region from the given ADQL representation.
|
Modifier and Type | Class and Description |
---|---|
class |
UnresolvedColumnException
This exception is thrown by
DBChecker when a column does not exist
or whose the table reference is ambiguous. |
class |
UnresolvedFunctionException
Exception thrown when a function can not be resolved by the library.
|
class |
UnresolvedIdentifiersException
This exception is thrown by
DBChecker when several columns or tables do not exist. |
class |
UnresolvedJoinException
This exception is thrown when a table between 2 tables can not be resolved,
and particularly because of the join condition (i.e.
|
class |
UnresolvedTableException
This exception is thrown by
DBChecker when a table does not exist
or whose the schema reference is ambiguous. |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<ParseException> |
UnresolvedIdentifiersException.exceptions
List of exceptions (one per unresolved identifier).
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ParseException> |
UnresolvedIdentifiersException.getErrors()
Gets the list of all errors.
|
java.util.Iterator<ParseException> |
UnresolvedIdentifiersException.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
UnresolvedIdentifiersException.addException(ParseException pe)
Adds a
ParseException (supposed to be either an UnresolvedColumnException or an UnresolvedTableException ). |
Modifier and Type | Method and Description |
---|---|
ParseException |
ADQLParser.generateParseException()
Generate ParseException.
|
Modifier and Type | Method and Description |
---|---|
Between |
ADQLParser.BetweenEnd(ADQLOperand leftOp) |
void |
QueryChecker.check(ADQLQuery query)
Checks the given
ADQLQuery . |
ADQLColumn |
ADQLParser.Column() |
IdentifierItems |
ADQLParser.ColumnName()
Extracts the name of a column with its possible catalog, schema and table prefixes.
|
Comparison |
ADQLParser.ComparisonEnd(ADQLOperand leftOp) |
ClauseConstraints |
ADQLParser.ConditionsList(ClauseConstraints clause) |
ADQLConstraint |
ADQLParser.Constraint() |
ADQLOperand[] |
ADQLParser.Coordinates() |
ADQLOperand |
ADQLParser.CoordinateSystem() |
GeometryFunction |
ADQLParser.ExtractCoordSys() |
ADQLOperand |
ADQLParser.Factor() |
void |
ADQLParser.From() |
GeometryFunction.GeometryValue<GeometryFunction> |
ADQLParser.GeometryExpression() |
GeometryFunction |
ADQLParser.GeometryFunction() |
GeometryFunction |
ADQLParser.GeometryValueFunction() |
void |
ADQLParser.GroupBy() |
void |
ADQLParser.Having() |
IdentifierItems.IdentifierItem |
ADQLParser.Identifier() |
In |
ADQLParser.InEnd(ADQLOperand leftOp) |
FromContent |
ADQLParser.JoinedTable() |
ADQLJoin |
ADQLParser.JoinSpecification(FromContent leftTable) |
MathFunction |
ADQLParser.MathFunction() |
ADQLOperand |
ADQLParser.NumericExpression() |
ADQLFunction |
ADQLParser.NumericFunction() |
ADQLOperand |
ADQLParser.NumericTerm() |
ADQLOperand |
ADQLParser.NumericValueExpressionPrimary() |
void |
ADQLParser.OrderBy() |
ADQLOrder |
ADQLParser.OrderItem() |
ADQLQuery |
ADQLParser.parseQuery()
Parses the query given at the creation of this parser or in the
ReInit functions.
|
ADQLQuery |
ADQLParser.parseQuery(java.io.InputStream stream)
Parses the query contained in the stream given in parameter.
|
ADQLQuery |
ADQLParser.parseQuery(java.lang.String q)
Parses the query given in parameter.
|
PointFunction |
ADQLParser.Point() |
ADQLConstraint |
ADQLParser.Predicate() |
ADQLQuery |
ADQLParser.Query()
Parses the ADQL query given at the parser creation or in the
ADQLParser.ReInit(java.io.InputStream)
or in the parseQuery functions. |
ADQLQuery |
ADQLParser.QueryExpression() |
void |
ADQLParser.Select() |
SelectItem |
ADQLParser.SelectItem() |
NumericConstant |
ADQLParser.SignedInteger() |
FromContent |
ADQLParser.SimpleTableRef() |
SQLFunction |
ADQLParser.SqlFunction() |
StringConstant |
ADQLParser.String() |
ADQLOperand |
ADQLParser.StringExpression() |
ADQLOperand |
ADQLParser.StringFactor() |
ADQLOperand |
ADQLParser.StringValueExpressionPrimary() |
ADQLQuery |
ADQLParser.SubQueryExpression() |
IdentifierItems |
ADQLParser.TableName()
Extracts the name of a table with its possible catalog and schema prefixes.
|
FromContent |
ADQLParser.TableRef() |
void |
ADQLParser.testRegularIdentifier(Token token)
Test the given token as an ADQL's regular identifier.
|
MathFunction |
ADQLParser.TrigFunction() |
java.lang.String |
ADQLParser.tryQuickFix(java.io.InputStream input)
Try fixing tokens/terms of the input ADQL query.
|
java.lang.String |
ADQLParser.tryQuickFix(java.lang.String adqlQuery)
Try fixing tokens/terms of the given ADQL query.
|
NumericConstant |
ADQLParser.UnsignedFloat() |
NumericConstant |
ADQLParser.UnsignedNumeric() |
UserDefinedFunction |
ADQLParser.UserDefinedFunction() |
ADQLOperand |
ADQLParser.ValueExpression() |
void |
ADQLParser.Where() |
Modifier and Type | Method and Description |
---|---|
void |
GeometryFunction.setCoordinateSystem(ADQLOperand coordSys)
Changes the coordinate system.
|
Modifier and Type | Method and Description |
---|---|
STCS.Region |
PgSphereTranslator.PgSphereGeometryParser.parseBox(java.lang.String pgsphereExpr)
Parse the given PgSphere geometry as a box.
|
STCS.Region |
PgSphereTranslator.PgSphereGeometryParser.parseCircle(java.lang.String pgsphereExpr)
Parse the given PgSphere geometry as a circle.
|
STCS.Region |
PgSphereTranslator.PgSphereGeometryParser.parsePoint(java.lang.String pgsphereExpr)
Parse the given PgSphere geometry as a point.
|
STCS.Region |
PgSphereTranslator.PgSphereGeometryParser.parsePolygon(java.lang.String pgsphereExpr)
Parse the given PgSphere geometry as a point.
|
abstract STCS.Region |
JDBCTranslator.translateGeometryFromDB(java.lang.Object jdbcColValue)
Parse the given JDBC column value as a geometry object and convert it into a
STCS.Region . |
STCS.Region |
MySQLTranslator.translateGeometryFromDB(java.lang.Object jdbcColValue) |
STCS.Region |
PostgreSQLTranslator.translateGeometryFromDB(java.lang.Object jdbcColValue) |
STCS.Region |
PgSphereTranslator.translateGeometryFromDB(java.lang.Object jdbcColValue) |
STCS.Region |
SQLServerTranslator.translateGeometryFromDB(java.lang.Object jdbcColValue) |
abstract java.lang.Object |
JDBCTranslator.translateGeometryToDB(STCS.Region region)
Convert the given STC region into a DB column value.
|
java.lang.Object |
MySQLTranslator.translateGeometryToDB(STCS.Region region) |
java.lang.Object |
PostgreSQLTranslator.translateGeometryToDB(STCS.Region region) |
java.lang.Object |
PgSphereTranslator.translateGeometryToDB(STCS.Region region) |
java.lang.Object |
SQLServerTranslator.translateGeometryToDB(STCS.Region region) |