|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.TapSchemaTapMetaReader
public class TapSchemaTapMetaReader
TapMetaReader implementation that uses TAP queries on the TAP_SCHEMA schema to acquire table metadata.
Constructor Summary | |
---|---|
TapSchemaTapMetaReader(String serviceUrl,
int maxrec,
boolean populateSchemas,
boolean populateTables)
Constructor. |
Method Summary | |
---|---|
String |
getSource()
Returns a textual indication of where the metadata is coming from. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TapSchemaTapMetaReader(String serviceUrl, int maxrec, boolean populateSchemas, boolean populateTables)
serviceUrl
- TAP service URLmaxrec
- maximum number of records to be requested at oncepopulateSchemas
- 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 acquiredMethod Detail |
---|
public String getSource()
TapMetaReader
getSource
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 call
IOException
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 call
IOException
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 call
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |