Package uk.ac.starlink.vo
Class TapMetaPolicy
- java.lang.Object
-
- uk.ac.starlink.vo.TapMetaPolicy
-
public abstract class TapMetaPolicy extends java.lang.ObjectDefines 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
Fields Modifier and Type Field Description static TapMetaPolicyAUTOTries its best to do something sensible.static TapMetaPolicyTAPSCHEMAUses the TAP_SCHEMA tables, all data loaded at once.static TapMetaPolicyTAPSCHEMA_CUses the TAP_SCHEMA tables, with columns on demand.static TapMetaPolicyTAPSCHEMA_CFUses the TAP_SCHEMA tables, with columns and foreign keys on demand.static TapMetaPolicyVIZIERUses the non-standard VizieR two-level tables endpoint.static TapMetaPolicyVOSI10Uses the VOSI 1.0 /tables endpoint.static TapMetaPolicyVOSI11_MAXUses the VOSI 1.1 one-stage (detail=max) /tables endpoint.static TapMetaPolicyVOSI11_MINUses the VOSI 1.1 two-stage (detail=min) /tables endpoint.static TapMetaPolicyVOSI11_NULLUses the VOSI 1.1 /tables endpoint (backward compatible).
-
Constructor Summary
Constructors Modifier Constructor Description protectedTapMetaPolicy(java.lang.String name, java.lang.String description)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TapMetaReadercreateMetaReader(TapService service, uk.ac.starlink.util.ContentCoding coding)Creates an object capable of acquiring TAP metadata for a given TAP service description.static TapMetaPolicygetDefaultInstance()Returns an instance of this class suitable for general use.java.lang.StringgetDescription()Returns a plain text description of this object.java.lang.StringgetName()Returns the name of this object.static TapMetaPolicy[]getStandardInstances()Returns a list of some general-purpose concrete implementations of this class.
-
-
-
Field Detail
-
AUTO
public static final TapMetaPolicy AUTO
Tries its best to do something sensible.
-
VOSI10
public static final TapMetaPolicy VOSI10
Uses the VOSI 1.0 /tables endpoint.
-
TAPSCHEMA_C
public static final TapMetaPolicy TAPSCHEMA_C
Uses the TAP_SCHEMA tables, with columns on demand.
-
TAPSCHEMA_CF
public static final TapMetaPolicy TAPSCHEMA_CF
Uses the TAP_SCHEMA tables, with columns and foreign keys on demand.
-
TAPSCHEMA
public static final TapMetaPolicy TAPSCHEMA
Uses the TAP_SCHEMA tables, all data loaded at once.
-
VIZIER
public static final TapMetaPolicy VIZIER
Uses the non-standard VizieR two-level tables endpoint.
-
VOSI11_MAX
public static final TapMetaPolicy VOSI11_MAX
Uses the VOSI 1.1 one-stage (detail=max) /tables endpoint.
-
VOSI11_MIN
public static final TapMetaPolicy VOSI11_MIN
Uses the VOSI 1.1 two-stage (detail=min) /tables endpoint.
-
VOSI11_NULL
public static final TapMetaPolicy VOSI11_NULL
Uses the VOSI 1.1 /tables endpoint (backward compatible).
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this object.- Returns:
- short name
-
getDescription
public java.lang.String 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
public static TapMetaPolicy[] getStandardInstances()
Returns a list of some general-purpose concrete implementations of this class.- Returns:
- list of instances
-
getDefaultInstance
public static TapMetaPolicy getDefaultInstance()
Returns an instance of this class suitable for general use.- Returns:
- default instance
-
-