MutableMetaStore¶
MutableMetaStore
is an extension of the MetaStore abstraction for mutable metastores.
Contract¶
addSourceReferences¶
void addSourceReferences(
SourceName sourceName,
Set<SourceName> sourceReferences)
copy¶
MutableMetaStore copy()
Makes a copy of this MutableMetaStore
Used when:
EngineContext
is requested to createSandbox
deleteSource¶
void deleteSource(
SourceName sourceName) // (1)!
void deleteSource(
SourceName sourceName,
boolean restoreInProgress)
- Turns
restoreInProgress
off (false
)
Registering DataSource¶
void putSource(
DataSource dataSource,
boolean allowReplace)
See MetaStoreImpl
Used when:
DdlCommandExec.Executor
is requested to execute CreateStreamCommand, CreateTable, AlterSourceCommandEngineExecutor
is requested to sourceTablePlan