Package uk.ac.starlink.vo
Class TapMetaPolicy
java.lang.Object
uk.ac.starlink.vo.TapMetaPolicy
Defines the policy for acquiring TAP metadata from a remote service.
This is a factory for TapMetaReader objects.
- Since:
- 25 Mar 2015
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TapMetaPolicy
Tries its best to do something sensible.static final TapMetaPolicy
Uses the TAP_SCHEMA tables, all data loaded at once.static final TapMetaPolicy
Uses the TAP_SCHEMA tables, with columns on demand.static final TapMetaPolicy
Uses the TAP_SCHEMA tables, with columns and foreign keys on demand.static final TapMetaPolicy
Uses the non-standard VizieR two-level tables endpoint.static final TapMetaPolicy
Uses the VOSI 1.0 /tables endpoint.static final TapMetaPolicy
Uses the VOSI 1.1 one-stage (detail=max) /tables endpoint.static final TapMetaPolicy
Uses the VOSI 1.1 two-stage (detail=min) /tables endpoint.static final TapMetaPolicy
Uses the VOSI 1.1 /tables endpoint (backward compatible). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TapMetaPolicy
(String name, String description) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract TapMetaReader
createMetaReader
(TapService service, uk.ac.starlink.util.ContentCoding coding) Creates an object capable of acquiring TAP metadata for a given TAP service description.static TapMetaPolicy
Returns an instance of this class suitable for general use.Returns a plain text description of this object.getName()
Returns the name of this object.static TapMetaPolicy[]
Returns a list of some general-purpose concrete implementations of this class.
-
Field Details
-
AUTO
Tries its best to do something sensible. -
VOSI10
Uses the VOSI 1.0 /tables endpoint. -
TAPSCHEMA_C
Uses the TAP_SCHEMA tables, with columns on demand. -
TAPSCHEMA_CF
Uses the TAP_SCHEMA tables, with columns and foreign keys on demand. -
TAPSCHEMA
Uses the TAP_SCHEMA tables, all data loaded at once. -
VIZIER
Uses the non-standard VizieR two-level tables endpoint. -
VOSI11_MAX
Uses the VOSI 1.1 one-stage (detail=max) /tables endpoint. -
VOSI11_MIN
Uses the VOSI 1.1 two-stage (detail=min) /tables endpoint. -
VOSI11_NULL
Uses the VOSI 1.1 /tables endpoint (backward compatible).
-
-
Constructor Details
-
TapMetaPolicy
Constructor.- Parameters:
name
- short name for this instancedescription
- plain text description of this instance
-
-
Method Details
-
getName
Returns the name of this object.- Returns:
- short name
-
getDescription
Returns a plain text description of this object.- Returns:
- description
-
createMetaReader
public abstract TapMetaReader createMetaReader(TapService service, uk.ac.starlink.util.ContentCoding coding) Creates an object capable of acquiring TAP metadata for a given TAP service description.- Parameters:
service
- TAP service descriptioncoding
- configures HTTP compression; implementations may honour this hint but are not required to- Returns:
- new metadata reader
-
getStandardInstances
Returns a list of some general-purpose concrete implementations of this class.- Returns:
- list of instances
-
getDefaultInstance
Returns an instance of this class suitable for general use.- Returns:
- default instance
-