Package org.teiid.dqp.internal.process
Class DataTierManagerImpl
- java.lang.Object
-
- org.teiid.dqp.internal.process.DataTierManagerImpl
-
- All Implemented Interfaces:
ProcessorDataManager
public class DataTierManagerImpl extends Object implements ProcessorDataManager
FullProcessorDataManager
implementation that controls access toConnectorManager
s and handles system queries.
-
-
Constructor Summary
Constructors Constructor Description DataTierManagerImpl(DQPCore requestMgr, BufferManager bufferMgr, boolean detectChangeEvents)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
detectChangeEvents()
static AbstractMetadataRecord
getByUuid(CompositeMetadataStore metadata, String uuid)
EventDistributor
getEventDistributor()
static int
getLevel(String level)
MetadataRepository
getMetadataRepository(AbstractMetadataRecord target, VDBMetaData vdb)
Object
lookupCodeValue(CommandContext context, String codeTableName, String returnElementName, String keyElementName, Object keyValue)
Lookup a value from a cached code table.TupleSource
registerRequest(CommandContext context, Command command, String modelName, RegisterRequestParameter parameterObject)
void
setEventDistributor(EventDistributor eventDistributor)
-
-
-
Constructor Detail
-
DataTierManagerImpl
public DataTierManagerImpl(DQPCore requestMgr, BufferManager bufferMgr, boolean detectChangeEvents)
-
-
Method Detail
-
getLevel
public static int getLevel(String level) throws TeiidProcessingException
- Throws:
TeiidProcessingException
-
detectChangeEvents
public boolean detectChangeEvents()
-
setEventDistributor
public void setEventDistributor(EventDistributor eventDistributor)
-
getEventDistributor
public EventDistributor getEventDistributor()
- Specified by:
getEventDistributor
in interfaceProcessorDataManager
-
registerRequest
public TupleSource registerRequest(CommandContext context, Command command, String modelName, RegisterRequestParameter parameterObject) throws TeiidComponentException, TeiidProcessingException
- Specified by:
registerRequest
in interfaceProcessorDataManager
- Throws:
TeiidComponentException
TeiidProcessingException
-
getMetadataRepository
public MetadataRepository getMetadataRepository(AbstractMetadataRecord target, VDBMetaData vdb)
-
getByUuid
public static AbstractMetadataRecord getByUuid(CompositeMetadataStore metadata, String uuid)
-
lookupCodeValue
public Object lookupCodeValue(CommandContext context, String codeTableName, String returnElementName, String keyElementName, Object keyValue) throws BlockedException, TeiidComponentException, TeiidProcessingException
Description copied from interface:ProcessorDataManager
Lookup a value from a cached code table. If the code table is not loaded, it will be loaded on the first query. Code tables should be cached based on a combination of the codeTableName, returnElementName, and keyElementName. If the table is not loaded, a request will be made and the method should throw a BlockedException.- Specified by:
lookupCodeValue
in interfaceProcessorDataManager
- Throws:
BlockedException
TeiidComponentException
TeiidProcessingException
-
-