public class TapSchemaTapMetaReader extends Object implements TapMetaReader
Constructor and Description |
---|
TapSchemaTapMetaReader(TapService service,
int maxrec,
ContentCoding coding,
boolean populateSchemas,
boolean populateTables,
MetaNameFixer fixer,
boolean preloadFkeys)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMeans()
Returns a textual indication of the method or protocol
this reader uses to acquire TAP metadata.
|
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 TapSchemaTapMetaReader(TapService service, int maxrec, ContentCoding coding, boolean populateSchemas, boolean populateTables, MetaNameFixer fixer, boolean preloadFkeys)
service
- TAP service descriptionmaxrec
- maximum number of records to be requested at oncecoding
- configures HTTP compressionpopulateSchemas
- whether SchemaMeta objects will be
filled in with table lists when they are
acquiredpopulateTables
- whether TableMeta objects will be
filled in with column and foreign key lists
when they are acquiredfixer
- object that fixes up syntactically incorrect
table/column names; if null no fixing is done;
has no effect for compliant TAP_SCHEMA servicespreloadFkeys
- if true, all foreign key info is loaded in one go,
if false it's read per-table as requiredpublic String getSource()
TapMetaReader
getSource
in interface TapMetaReader
public String getMeans()
TapMetaReader
getMeans
in interface TapMetaReader
public SchemaMeta[] readSchemas() throws IOException
TapMetaReader
May be slow.
readSchemas
in interface TapMetaReader
IOException
public TableMeta[] readTables(SchemaMeta schema) throws IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readTables
in interface TapMetaReader
schema
- schema containing tables; not altered by callIOException
public ColumnMeta[] readColumns(TableMeta table) throws IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readColumns
in interface TapMetaReader
table
- table containing columns; not altered by callIOException
public ForeignMeta[] readForeignKeys(TableMeta table) throws IOException
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readForeignKeys
in interface TapMetaReader
table
- table containing columns; not altered by callIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.