public abstract class TableMetadataStage extends Object implements Stage, MetadataHolder
Constructor and Description |
---|
TableMetadataStage(String srcDescription,
String[] knownColFlags,
boolean reportOtherFlags)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a short one-line description of this stage.
|
String |
getSourceDescription()
Returns a short text description of table metadata source.
|
SchemaMeta[] |
getTableMetadata()
Returns the table metadata obtained by the last run of this stage.
|
boolean |
hasDetail()
Indicates whether column/key metadata was obtained by the last run
of this stage.
|
protected abstract MetadataHolder |
readTableMetadata(Reporter reporter,
TapService tapService)
Reads an object providing table metadata to check.
|
void |
run(Reporter reporter,
TapService tapService)
Performs the validation checks for this stage.
|
void |
setTableFilter(java.util.function.Predicate<TableMeta> tableFilter)
Installs a filter that restricts reported metadata
to only selected tables.
|
public TableMetadataStage(String srcDescription, String[] knownColFlags, boolean reportOtherFlags)
srcDescription
- short text description of table metadata sourceknownColFlags
- standard column flag values to report counts forreportOtherFlags
- whether to report counts for non-standard
column flag valuespublic String getDescription()
Stage
getDescription
in interface Stage
public String getSourceDescription()
public SchemaMeta[] getTableMetadata()
getTableMetadata
in interface MetadataHolder
public boolean hasDetail()
hasDetail
in interface MetadataHolder
public void setTableFilter(java.util.function.Predicate<TableMeta> tableFilter)
run(uk.ac.starlink.ttools.taplint.Reporter, uk.ac.starlink.vo.TapService)
time,
subsequent calls to getTableMetadata()
will return metadata
referencing only those tables passed by the filter.tableFilter
- table selection, or null for unrestrictedprotected abstract MetadataHolder readTableMetadata(Reporter reporter, TapService tapService)
reporter
- destination for messagestapService
- TAP service descriptionpublic void run(Reporter reporter, TapService tapService)
Stage
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.