|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.TableSetTapMetaReader
public class TableSetTapMetaReader
TapMetaReader implementation that reads data from a vs:TableSet document. This can be found at the /tables endpoint of a TAP service.
All of the available information is read by readSchemas()
,
so the other read*
methods never need be called,
and will throw UnsupportedOperationExceptions.
Constructor Summary | |
---|---|
TableSetTapMetaReader(String tablesetUrl)
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 TableSetTapMetaReader(String tablesetUrl)
tablesetUrl
- URL of some document containing VOSITables
<schema>
elementsMethod Detail |
---|
public SchemaMeta[] readSchemas() throws IOException
TapMetaReader
May be slow.
readSchemas
in interface TapMetaReader
IOException
public TableMeta[] readTables(SchemaMeta schema)
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readTables
in interface TapMetaReader
schema
- schema containing tables; not altered by call
UnsupportedOperationException
public ColumnMeta[] readColumns(TableMeta table)
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readColumns
in interface TapMetaReader
table
- table containing columns; not altered by call
UnsupportedOperationException
public ForeignMeta[] readForeignKeys(TableMeta table)
TapMetaReader
May be slow. May throw UnsupportedOperationException if not needed.
readForeignKeys
in interface TapMetaReader
table
- table containing columns; not altered by call
UnsupportedOperationException
public String getSource()
TapMetaReader
getSource
in interface TapMetaReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |