Constructor and Description |
---|
CompareMetadataStage(String srcDesc1,
String srcDesc2,
MetadataHolder metaHolder1,
MetadataHolder metaHolder2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compatibleDataTypes(String dt1,
String dt2)
Indicates whether two datatypes are compatible with each other.
|
static CompareMetadataStage |
createStage(TableMetadataStage stage1,
TableMetadataStage stage2)
Utility method to construct a CompareMetadataStage instance given
two TableMetadataStage objects.
|
String |
getDescription()
Returns a short one-line description of this stage.
|
void |
run(Reporter reporter,
TapService tapService)
Performs the validation checks for this stage.
|
static String |
stripAdqlType(String dtype)
Takes a string which may be an ADQL type and strips off confusing
parts including any "adql:" prefix and trailing parenthesis.
|
public CompareMetadataStage(String srcDesc1, String srcDesc2, MetadataHolder metaHolder1, MetadataHolder metaHolder2)
srcDesc1
- short description of source of first metadata setsrcDesc2
- short description of source of second metadata setmetaHolder1
- supplies first metadata set at comparison timemetaHolder2
- supplies second metadata set at comparison timepublic String getDescription()
Stage
getDescription
in interface Stage
public void run(Reporter reporter, TapService tapService)
Stage
public static boolean compatibleDataTypes(String dt1, String dt2)
Note however that, as clarified by TAP 1.0 Erratum #3, TAP/ADQL has no type system, so any comparison involving the types listed in TAP v1.0 section 2.5 cannot be normative. So any report issued on failure of this test should only be a Warning and not an Error.
dt1
- first data typedt2
- second data typepublic static String stripAdqlType(String dtype)
dtype
- string which may be an ADQL datatypepublic static CompareMetadataStage createStage(TableMetadataStage stage1, TableMetadataStage stage2)
stage1
- first metadata producing stagestage2
- second metadata producing stageCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.