public class CadcTapMetaReader extends java.lang.Object implements TapMetaReader
Modifier and Type | Class and Description |
---|---|
static class |
CadcTapMetaReader.Config
Defines what parts of the tableset tree are acquired at what
types of read query on this object.
|
Constructor and Description |
---|
CadcTapMetaReader(java.net.URL tablesetUrl)
Constructs a default instance.
|
CadcTapMetaReader(java.net.URL tablesetUrl,
CadcTapMetaReader.Config config,
uk.ac.starlink.util.ContentCoding coding)
Constructs an instance with a configurable metadata object population
policy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMeans()
Returns a textual indication of the method or protocol
this reader uses to acquire TAP metadata.
|
java.lang.String |
getSource()
Returns a textual indication of where the metadata is coming from,
typically a URL.
|
ColumnMeta[] |
readColumns(TableMeta table)
Acquires metadata about columns in a given table from a TAP service.
|
ForeignMeta[] |
readForeignKeys(TableMeta table)
Acquires metadata about foreign keys in a given table from a TAP service.
|
SchemaMeta[] |
readSchemas()
Acquires metadata about schemas in a TAP service.
|
TableMeta[] |
readTables(SchemaMeta schema)
Acquires metadata about tables in a given schema from a TAP service.
|
public CadcTapMetaReader(java.net.URL tablesetUrl)
tablesetUrl
- URL for CADC-like tableset servicepublic CadcTapMetaReader(java.net.URL tablesetUrl, CadcTapMetaReader.Config config, uk.ac.starlink.util.ContentCoding coding)
tablesetUrl
- URL for CADC-like tableset serviceconfig
- population configurationcoding
- configures HTTP content-codingpublic SchemaMeta[] readSchemas() throws java.io.IOException
TapMetaReader
May be slow.
readSchemas
in interface TapMetaReader
java.io.IOException
public TableMeta[] readTables(SchemaMeta schema) throws java.io.IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readTables
in interface TapMetaReader
schema
- schema containing tables; not altered by calljava.io.IOException
public ColumnMeta[] readColumns(TableMeta table) throws java.io.IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readColumns
in interface TapMetaReader
table
- table containing columns; not altered by calljava.io.IOException
public ForeignMeta[] readForeignKeys(TableMeta table) throws java.io.IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readForeignKeys
in interface TapMetaReader
table
- table containing columns; not altered by calljava.io.IOException
public java.lang.String getSource()
TapMetaReader
getSource
in interface TapMetaReader
public java.lang.String getMeans()
TapMetaReader
getMeans
in interface TapMetaReader
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.