Package org.ivoa.dm.tapschema.utils
Class SchemaReader.Options
java.lang.Object
org.ivoa.dm.tapschema.utils.SchemaReader.Options
- Enclosing class:
- SchemaReader
Options controlling metadata harvesting.
This class gives some control over the schema that are harvested and the types of tables that are included.
The options are designed to be fluent, so that they can be easily chained together. For example:
new SchemaReader(connection).translate(new SchemaReader.Options()
.setIncludeSystemSchemas(true)
.setIncludeSchemas(Set.of("PUBLIC", "ASTRO"))
.setTableTypes("TABLE", "VIEW"));
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]booleansetCatalog(String catalog) setIncludeSchemas(Collection<String> includeSchemas) setIncludeSystemSchemas(boolean includeSystemSchemas) setTableTypes(String... tableTypes)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
isIncludeSystemSchemas
public boolean isIncludeSystemSchemas() -
setIncludeSystemSchemas
-
getCatalog
-
setCatalog
-
getIncludeSchemas
-
setIncludeSchemas
-
getTableTypes
-
setTableTypes
-