public class Assessor extends Object
| Constructor and Description |
|---|
Assessor() |
| Modifier and Type | Method and Description |
|---|---|
PipelineAssessment |
assessPipeline(String namespace,
DeltaConfig deltaConfig,
Configurer configurer)
Assess the entire pipeline based on the tables the source will read and the capabilities of the target.
|
TableAssessmentResponse |
assessTable(String namespace,
DeltaConfig deltaConfig,
Configurer configurer,
DBTable dbTable)
Assess the given table detail using the plugins from the given Delta Config.
|
TableDetail |
describeTable(String namespace,
DeltaConfig config,
Configurer configurer,
DBTable dbTable)
Describe the given database table using the source from the given delta config.
|
TableList |
listTables(String namespace,
DeltaConfig config,
Configurer configurer)
List the database tables readable by the source in the given delta config.
|
public TableList listTables(String namespace, DeltaConfig config, Configurer configurer) throws Exception
If the plugin cannot be instantiated, or if the table list cannot be generated due to missing information in
the draft, an InvalidDraftException will be thrown.
namespace - namespaceconfig - DeltaConfigconfigurer - configurer used to instantiate pluginsDraftNotFoundException - if the draft does not existInvalidDraftException - if the table list cannot be fetched because the delta config is invalidIOException - if the was an IO error fetching the table listException - if there was an error creating the table registrypublic TableDetail describeTable(String namespace, DeltaConfig config, Configurer configurer, DBTable dbTable) throws Exception
If the plugin cannot be instantiated, or if the table cannot be described to missing information in
the draft, an InvalidDraftException will be thrown.
namespace - namespaceconfig - DeltaConfigconfigurer - configurer used to instantiate pluginsdbTable - the dbTableDraftNotFoundException - if the draft does not existInvalidDraftException - if the table list cannot be fetched because the deltaconfig is invalidTableNotFoundException - if the table does not existIOException - if the was an IO error fetching the table detailException - if there was an error creating the table registrypublic TableAssessmentResponse assessTable(String namespace, DeltaConfig deltaConfig, Configurer configurer, DBTable dbTable) throws Exception
namespace - namespace to look for macrosdeltaConfig - : delta config to assessdbTable - : the selected table to assessconfigurer - configurer used to instantiate pluginsIOException - if the table detail could not be readException - if there was an error creating the table registryIllegalArgumentException - if the number of tables is not equal to one.public PipelineAssessment assessPipeline(String namespace, DeltaConfig deltaConfig, Configurer configurer) throws Exception
If the plugin cannot be instantiated due to missing properties in delta config,
an InvalidDraftException will be thrown.
namespace - id of the draftdeltaConfig - : delta config object to assessconfigurer - configurer used to instantiate pluginsDraftNotFoundException - if the draft does not existInvalidDraftException - if the table list cannot be fetched because the draft is invalidIOException - if there was an IO error getting the list of source tablesException - if there was an error creating the table registryCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.