public class AdqlFeature extends Object
A number of static methods are provided that return lists of features provided by a particular ADQL version either absolutely or in the context of a list of language feature declarations. This class contains knowledge about what standard mandatory and optional features are declared by known versions of the ADQL standard.
Note that ADQL 2.0 does not define a proper type system, so in the case of ADQL 2.0 the types declared here are not strictly based in the standard, but a casual reading will give the intent of what was written in the ADQL 2.0 standard.
Modifier and Type | Class and Description |
---|---|
static class |
AdqlFeature.Arg
Represents a declared argument of a function.
|
static class |
AdqlFeature.Function
AdqlFeature subclass which represents a function.
|
static class |
AdqlFeature.Type
Datatype of a function argument or return value.
|
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<Ivoid> |
ADQL21MISC_FILTER
Includes feature types for Ivoids representing optional features.
|
static java.util.function.Predicate<Ivoid> |
ADQLGEO_FILTER
Includes feature types for Ivoids representing Geometry functions.
|
static java.util.function.Predicate<Ivoid> |
NONSTD_FILTER
Includes feature types for Ivoids representing non-standard features.
|
static java.util.function.Predicate<Ivoid> |
UDF_FILTER
Includes feature types for Ivoids representing UDFs.
|
Modifier | Constructor and Description |
---|---|
protected |
AdqlFeature(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a plain text description of this feature.
|
static AdqlFeature.Function[] |
getGeomFunctions(AdqlVersion version,
TapCapability tcap)
Returns an array of the standard ADQL 2.0 or 2.1 geometry functions
declared by a given TapCapability object.
|
static AdqlFeature.Function[] |
getMathsFunctions()
Returns an array of the maths functions defined by ADQL.
|
String |
getName()
Returns the name of this feature.
|
static AdqlFeature[] |
getOptionalFeatures(TapCapability tcap)
Returns an array of the ADQL 2.1 optional features (excluding functions)
declared by a given TapCapability object.
|
static AdqlFeature.Function[] |
getOptionalFunctions(TapCapability tcap)
Returns an array of the ADQL 2.1 optional functions (but not other
optional features) declared by a given TapCapability object.
|
static AdqlFeature.Function[] |
getTrigFunctions()
Returns an array of the trigonometric functions defined by ADQL.
|
public static final java.util.function.Predicate<Ivoid> UDF_FILTER
public static final java.util.function.Predicate<Ivoid> ADQLGEO_FILTER
public static final java.util.function.Predicate<Ivoid> ADQL21MISC_FILTER
public static final java.util.function.Predicate<Ivoid> NONSTD_FILTER
public String getName()
public String getDescription()
public static AdqlFeature.Function[] getMathsFunctions()
public static AdqlFeature.Function[] getTrigFunctions()
public static AdqlFeature.Function[] getGeomFunctions(AdqlVersion version, TapCapability tcap)
version
- ADQL versiontcap
- capabilitiespublic static AdqlFeature.Function[] getOptionalFunctions(TapCapability tcap)
tcap
- capabilitiespublic static AdqlFeature[] getOptionalFeatures(TapCapability tcap)
tcap
- capabilitiesCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.