Package org.teiid.query.tempdata
Class TempTableDataManager
- java.lang.Object
-
- org.teiid.query.tempdata.TempTableDataManager
-
- All Implemented Interfaces:
ProcessorDataManager
public class TempTableDataManager extends Object implements ProcessorDataManager
This proxy ProcessorDataManager is used to handle temporary tables. This isn't handled as a connector because of the temporary metadata and the create/drop handling (which doesn't have push down support)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTempTableDataManager.ProxyTupleSourcestatic interfaceTempTableDataManager.RequestExecutor
-
Field Summary
Fields Modifier and Type Field Description static StringCODE_PREFIX
-
Constructor Summary
Constructors Constructor Description TempTableDataManager(ProcessorDataManager processorDataManager, BufferManager bufferManager, SessionAwareCache<CachedResults> cache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionMetadatacreateTemporarySession(String userName, String app, VDBMetaData vdb)Create an unauthenticated sessionEventDistributorgetEventDistributor()ObjectlookupCodeValue(CommandContext context, String codeTableName, String returnElementName, String keyElementName, Object keyValue)Lookup a value from a cached code table.TupleSourceregisterRequest(CommandContext context, Command command, String modelName, RegisterRequestParameter parameterObject)voidsetEventDistributor(EventDistributor eventDistributor)voidsetExecutor(TempTableDataManager.RequestExecutor executor)static booleanshouldInvalidate(VDBMetaData vdb)
-
-
-
Field Detail
-
CODE_PREFIX
public static final String CODE_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TempTableDataManager
public TempTableDataManager(ProcessorDataManager processorDataManager, BufferManager bufferManager, SessionAwareCache<CachedResults> cache)
-
-
Method Detail
-
setExecutor
public void setExecutor(TempTableDataManager.RequestExecutor executor)
-
setEventDistributor
public void setEventDistributor(EventDistributor eventDistributor)
-
registerRequest
public TupleSource registerRequest(CommandContext context, Command command, String modelName, RegisterRequestParameter parameterObject) throws TeiidComponentException, TeiidProcessingException
- Specified by:
registerRequestin interfaceProcessorDataManager- Throws:
TeiidComponentExceptionTeiidProcessingException
-
lookupCodeValue
public Object lookupCodeValue(CommandContext context, String codeTableName, String returnElementName, String keyElementName, Object keyValue) throws BlockedException, TeiidComponentException, TeiidProcessingException
Description copied from interface:ProcessorDataManagerLookup 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:
lookupCodeValuein interfaceProcessorDataManager- Throws:
BlockedExceptionTeiidComponentExceptionTeiidProcessingException
-
getEventDistributor
public EventDistributor getEventDistributor()
- Specified by:
getEventDistributorin interfaceProcessorDataManager
-
createTemporarySession
public static SessionMetadata createTemporarySession(String userName, String app, VDBMetaData vdb)
Create an unauthenticated session- Parameters:
userName-app-vdb-- Returns:
-
shouldInvalidate
public static boolean shouldInvalidate(VDBMetaData vdb)
-
-