Package org.teiid.query.metadata
Class MaterializationMetadataRepository
- java.lang.Object
-
- org.teiid.query.metadata.MaterializationMetadataRepository
-
- All Implemented Interfaces:
MetadataRepository
public class MaterializationMetadataRepository extends Object implements MetadataRepository
This Metadata Repository adds/corrects metadata for materialization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MaterializationMetadataRepository.ErrorAction
static class
MaterializationMetadataRepository.LoadStates
static class
MaterializationMetadataRepository.Scope
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOW_MATVIEW_MANAGEMENT
static String
MATVIEW_AFTER_LOAD_SCRIPT
static String
MATVIEW_BEFORE_LOAD_SCRIPT
static String
MATVIEW_LOAD_SCRIPT
static String
MATVIEW_LOADNUMBER_COLUMN
static String
MATVIEW_MAX_STALENESS_PCT
static String
MATVIEW_ONERROR_ACTION
static String
MATVIEW_OWNER_VDB_NAME
static String
MATVIEW_OWNER_VDB_VERSION
static String
MATVIEW_PART_LOAD_COLUMN
static String
MATVIEW_PART_LOAD_VALUES
static String
MATVIEW_POLLING_INTERVAL
static String
MATVIEW_POLLING_QUERY
static String
MATVIEW_PREFER_MEMORY
static String
MATVIEW_SCOPE
static String
MATVIEW_SHARE_SCOPE
static String
MATVIEW_STAGE_TABLE
static String
MATVIEW_STATUS_TABLE
static String
MATVIEW_TTL
static String
MATVIEW_UPDATABLE
static String
MATVIEW_WRITE_THROUGH
static String
ON_VDB_DROP_SCRIPT
static String
ON_VDB_START_SCRIPT
-
Constructor Summary
Constructors Constructor Description MaterializationMetadataRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadMetadata(MetadataFactory factory, ExecutionFactory executionFactory, Object connectionFactory)
Loads the schema information for the vdb for the given schemaName.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.metadata.MetadataRepository
loadMetadata, setColumnStats, setInsteadOfTriggerDefinition, setInsteadOfTriggerEnabled, setProcedureDefinition, setProperty, setTableStats, setViewDefinition
-
-
-
-
Field Detail
-
ALLOW_MATVIEW_MANAGEMENT
public static final String ALLOW_MATVIEW_MANAGEMENT
- See Also:
- Constant Field Values
-
ON_VDB_START_SCRIPT
public static final String ON_VDB_START_SCRIPT
- See Also:
- Constant Field Values
-
ON_VDB_DROP_SCRIPT
public static final String ON_VDB_DROP_SCRIPT
- See Also:
- Constant Field Values
-
MATVIEW_AFTER_LOAD_SCRIPT
public static final String MATVIEW_AFTER_LOAD_SCRIPT
- See Also:
- Constant Field Values
-
MATVIEW_BEFORE_LOAD_SCRIPT
public static final String MATVIEW_BEFORE_LOAD_SCRIPT
- See Also:
- Constant Field Values
-
MATVIEW_LOAD_SCRIPT
public static final String MATVIEW_LOAD_SCRIPT
- See Also:
- Constant Field Values
-
MATVIEW_STATUS_TABLE
public static final String MATVIEW_STATUS_TABLE
- See Also:
- Constant Field Values
-
MATVIEW_TTL
public static final String MATVIEW_TTL
- See Also:
- Constant Field Values
-
MATVIEW_STAGE_TABLE
public static final String MATVIEW_STAGE_TABLE
- See Also:
- Constant Field Values
-
MATVIEW_SHARE_SCOPE
public static final String MATVIEW_SHARE_SCOPE
- See Also:
- Constant Field Values
-
MATVIEW_ONERROR_ACTION
public static final String MATVIEW_ONERROR_ACTION
- See Also:
- Constant Field Values
-
MATVIEW_UPDATABLE
public static final String MATVIEW_UPDATABLE
- See Also:
- Constant Field Values
-
MATVIEW_PREFER_MEMORY
public static final String MATVIEW_PREFER_MEMORY
- See Also:
- Constant Field Values
-
MATVIEW_SCOPE
public static final String MATVIEW_SCOPE
- See Also:
- Constant Field Values
-
MATVIEW_LOADNUMBER_COLUMN
public static final String MATVIEW_LOADNUMBER_COLUMN
- See Also:
- Constant Field Values
-
MATVIEW_PART_LOAD_COLUMN
public static final String MATVIEW_PART_LOAD_COLUMN
- See Also:
- Constant Field Values
-
MATVIEW_PART_LOAD_VALUES
public static final String MATVIEW_PART_LOAD_VALUES
- See Also:
- Constant Field Values
-
MATVIEW_OWNER_VDB_NAME
public static final String MATVIEW_OWNER_VDB_NAME
- See Also:
- Constant Field Values
-
MATVIEW_OWNER_VDB_VERSION
public static final String MATVIEW_OWNER_VDB_VERSION
- See Also:
- Constant Field Values
-
MATVIEW_WRITE_THROUGH
public static final String MATVIEW_WRITE_THROUGH
- See Also:
- Constant Field Values
-
MATVIEW_MAX_STALENESS_PCT
public static final String MATVIEW_MAX_STALENESS_PCT
- See Also:
- Constant Field Values
-
MATVIEW_POLLING_INTERVAL
public static final String MATVIEW_POLLING_INTERVAL
- See Also:
- Constant Field Values
-
MATVIEW_POLLING_QUERY
public static final String MATVIEW_POLLING_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadMetadata
public void loadMetadata(MetadataFactory factory, ExecutionFactory executionFactory, Object connectionFactory) throws TranslatorException
Description copied from interface:MetadataRepository
Loads the schema information for the vdb for the given schemaName. Loads table, procedures, functions, indexes etc.- Specified by:
loadMetadata
in interfaceMetadataRepository
executionFactory
- may be null if loading a virtual sourceconnectionFactory
- may be null if source is not available- Throws:
TranslatorException
- to indicate a recoverable error, otherwise a RuntimeException
-
-