Package uk.ac.starlink.vo
Class Regtap12ServiceFinder
java.lang.Object
uk.ac.starlink.vo.Regtap12ServiceFinder
- All Implemented Interfaces:
TapServiceFinder
TapServiceFinder implementation that uses an IVOA registry compliant
with RegTAP v1.2 to discover services and tables.
In particular the new
rr.tap_table
table introduced at
RegTAP v1.2 is used.- Since:
- 28 Feb 2024
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from interface uk.ac.starlink.vo.TapServiceFinder
TapServiceFinder.Constraint, TapServiceFinder.Service, TapServiceFinder.Table, TapServiceFinder.Target
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default instance.Regtap12ServiceFinder
(TapService regtapService, uk.ac.starlink.util.ContentCoding coding) Constructs an instance with custom configuration. -
Method Summary
Modifier and TypeMethodDescriptionReads basic metadata about all known TAP services.readSelectedTables
(TapServiceFinder.Constraint constraint) Locates a list of tables from a global list of all known tables served by all known TAP services that satisfy a given constraint.
-
Constructor Details
-
Regtap12ServiceFinder
public Regtap12ServiceFinder()Constructs a default instance. -
Regtap12ServiceFinder
Constructs an instance with custom configuration.- Parameters:
regtapService
- RegTAP v1.2 service descriptioncoding
- controls HTTP-level compression during TAP queries
-
-
Method Details
-
readAllServices
Description copied from interface:TapServiceFinder
Reads basic metadata about all known TAP services. May be slow.- Specified by:
readAllServices
in interfaceTapServiceFinder
- Returns:
- list of TAP services
- Throws:
IOException
-
readSelectedTables
public TapServiceFinder.Table[] readSelectedTables(TapServiceFinder.Constraint constraint) throws IOException Description copied from interface:TapServiceFinder
Locates a list of tables from a global list of all known tables served by all known TAP services that satisfy a given constraint.- Specified by:
readSelectedTables
in interfaceTapServiceFinder
- Parameters:
constraint
- object indicating the tables of interest- Returns:
- list of tables matching constraint
- Throws:
IOException
-