|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.util.CommandContext
public class CommandContext
Defines the context that a command is processing in. For example, this defines who is processing the command and why. Also, this class (or subclasses) provide a means to pass context-specific information between users of the query processor framework.
| Constructor Summary | |
|---|---|
CommandContext()
|
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.io.Serializable commandPayload,
java.lang.String vdbName,
int vdbVersion,
java.util.Properties envProperties,
boolean collectNodeStatistics)
Construct a new context. |
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.lang.String vdbName,
int vdbVersion)
Construct a new context. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.io.Serializable commandPayload,
java.lang.String vdbName,
int vdbVersion,
java.util.Properties envProperties,
boolean collectNodeStatistics)
public CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.lang.String vdbName,
int vdbVersion)
public CommandContext()
| Method Detail |
|---|
public int getDeterminismLevel()
public int resetDeterminismLevel()
public void setDeterminismLevel(int level)
public java.lang.Object getProcessorID()
public void setProcessorID(java.lang.Object object)
object - public CommandContext clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getConnectionID()
getConnectionID in interface CommandContextpublic java.lang.String getUserName()
getUserName in interface CommandContextpublic java.lang.String getVdbName()
getVdbName in interface CommandContextpublic int getVdbVersion()
getVdbVersion in interface CommandContextpublic void setConnectionID(java.lang.String connectionID)
connectionID - The connectionID to setpublic void setUserName(java.lang.String userName)
userName - The userName to setpublic void setVdbName(java.lang.String vdbName)
vdbName - The vdbName to setpublic void setVdbVersion(int vdbVersion)
vdbVersion - The vdbVersion to setpublic java.util.Properties getEnvironmentProperties()
getEnvironmentProperties in interface CommandContextpublic void setEnvironmentProperties(java.util.Properties properties)
public java.io.Serializable getCommandPayload()
public void setCommandPayload(java.io.Serializable commandPayload)
public void setCollectNodeStatistics(boolean collectNodeStatistics)
collectNodeStatistics - The collectNodeStatistics to set.public boolean getCollectNodeStatistics()
public int getConnectorBatchSize()
public void setConnectorBatchSize(int connectorBatchSize)
public int getProcessorBatchSize()
getProcessorBatchSize in interface CommandContextpublic void setProcessorBatchSize(int processorBatchSize)
public double getNextRand()
getNextRand in interface CommandContextpublic double getNextRand(long seed)
getNextRand in interface CommandContext
public void pushCall(java.lang.String value)
throws QueryProcessingException
QueryProcessingExceptionpublic int getCallStackDepth()
public void popCall()
public SecurityFunctionEvaluator getSecurityFunctionEvaluator()
public void setSecurityFunctionEvaluator(SecurityFunctionEvaluator securityFunctionEvaluator)
securityFunctionEvaluator - The securityFunctionEvaluator to set.public TempTableStore getTempTableStore()
public void setTempTableStore(TempTableStore tempTableStore)
public java.util.TimeZone getServerTimeZone()
getServerTimeZone in interface CommandContextpublic void setPlanToProcessConverter(PlanToProcessConverter planToProcessConverter)
public PlanToProcessConverter getPlanToProcessConverter()
public QueryProcessor.ProcessorFactory getQueryProcessorFactory()
public void setQueryProcessorFactory(QueryProcessor.ProcessorFactory queryProcessorFactory)
public VariableContext getVariableContext()
public void setVariableContext(VariableContext variableContext)
public void pushVariableContext(VariableContext toPush)
public java.lang.Object getFromContext(Expression expression)
throws TeiidComponentException
TeiidComponentExceptionpublic java.util.Set<java.lang.String> getGroups()
public void setGroups(java.util.Set<java.lang.String> groups)
public long getTimeSliceEnd()
public long getTimeoutEnd()
public void setTimeSliceEnd(long timeSliceEnd)
public void setTimeoutEnd(long timeoutEnd)
public void setMetadata(QueryMetadataInterface metadata)
public QueryMetadataInterface getMetadata()
public void setValidateXML(boolean validateXML)
public boolean validateXML()
public BufferManager getBufferManager()
public void setBufferManager(BufferManager bm)
public TempTableStore getGlobalTableStore()
public void setGlobalTableStore(TempTableStore tempTableStore)
public boolean isNonBlocking()
public void setNonBlocking(boolean nonBlocking)
public void setPreparedPlanCache(org.teiid.dqp.internal.process.SessionAwareCache<org.teiid.dqp.internal.process.PreparedPlan> cache)
public org.teiid.dqp.internal.process.PreparedPlan getPlan(java.lang.String key)
public void putPlan(java.lang.String key,
org.teiid.dqp.internal.process.PreparedPlan plan,
int determinismLevel)
public boolean isResultSetCacheEnabled()
public void setResultSetCacheEnabled(boolean resultSetCacheEnabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||