public interface MetadataRepository<F,C>
Modifier and Type | Method and Description |
---|---|
default void |
loadMetadata(MetadataFactory factory,
ExecutionFactory<F,C> executionFactory,
F connectionFactory)
Loads the schema information for the vdb for the given schemaName.
|
default void |
loadMetadata(MetadataFactory factory,
ExecutionFactory<F,C> executionFactory,
F connectionFactory,
String text)
Loads the schema information for the vdb for the given schemaName.
|
default void |
setColumnStats(String vdbName,
String vdbVersion,
Column column,
ColumnStats columnStats)
Set the
ColumnStats for a given column |
default void |
setInsteadOfTriggerDefinition(String vdbName,
String vdbVersion,
Table table,
Table.TriggerEvent triggerOperation,
String triggerDefinition)
Call back function, when "alter trigger" is called
|
default void |
setInsteadOfTriggerEnabled(String vdbName,
String vdbVersion,
Table table,
Table.TriggerEvent triggerOperation,
boolean enabled)
Callback function, when "alter trigger" is called to enable or disable a trigger
|
default void |
setProcedureDefinition(String vdbName,
String vdbVersion,
Procedure procedure,
String procedureDefinition)
Call back function, when "alter procedure" is called to set the procedure definition
|
default void |
setProperty(String vdbName,
String vdbVersion,
AbstractMetadataRecord record,
String name,
String value)
Set an extension metadata property for a given record.
|
default void |
setTableStats(String vdbName,
String vdbVersion,
Table table,
TableStats tableStats)
Set the
TableStats for the given table |
default void |
setViewDefinition(String vdbName,
String vdbVersion,
Table table,
String viewDefinition)
Call back function, when "alter view" definition is called
|
default void loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory, String text) throws TranslatorException
factory
- executionFactory
- may be null if loading a virtual sourceconnectionFactory
- may be null if source is not availabletext
- the text used to configure the loadTranslatorException
- to indicate a recoverable error, otherwise a RuntimeExceptiondefault void loadMetadata(MetadataFactory factory, ExecutionFactory<F,C> executionFactory, F connectionFactory) throws TranslatorException
factory
- executionFactory
- may be null if loading a virtual sourceconnectionFactory
- may be null if source is not availableTranslatorException
- to indicate a recoverable error, otherwise a RuntimeExceptiondefault void setViewDefinition(String vdbName, String vdbVersion, Table table, String viewDefinition)
vdbName
- vdbVersion
- table
- viewDefinition
- default void setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, String triggerDefinition)
vdbName
- vdbVersion
- table
- triggerOperation
- triggerDefinition
- default void setInsteadOfTriggerEnabled(String vdbName, String vdbVersion, Table table, Table.TriggerEvent triggerOperation, boolean enabled)
vdbName
- vdbVersion
- table
- triggerOperation
- enabled
- default void setProcedureDefinition(String vdbName, String vdbVersion, Procedure procedure, String procedureDefinition)
vdbName
- vdbVersion
- procedure
- procedureDefinition
- default void setTableStats(String vdbName, String vdbVersion, Table table, TableStats tableStats)
TableStats
for the given tablevdbName
- vdbVersion
- table
- tableStats
- default void setColumnStats(String vdbName, String vdbVersion, Column column, ColumnStats columnStats)
ColumnStats
for a given columnvdbName
- vdbVersion
- column
- columnStats
- default void setProperty(String vdbName, String vdbVersion, AbstractMetadataRecord record, String name, String value)
vdbName
- vdbVersion
- record
- name
- value
- Copyright © 2019. All rights reserved.