Class SessionContext
- java.lang.Object
-
- org.apache.flink.table.gateway.service.context.SessionContext
-
public class SessionContext extends Object
Context describing a session, it's mainly used for user to open a new session in the backend. If client request to open a new session, the backendExecutor
will maintain the session context map util users close it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionContext.SessionState
session state.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SessionContext(DefaultContext defaultContext, SessionHandle sessionId, EndpointVersion endpointVersion, Configuration sessionConf, URLClassLoader classLoader, SessionContext.SessionState sessionState, OperationManager operationManager)
-
Method Summary
-
-
-
Constructor Detail
-
SessionContext
protected SessionContext(DefaultContext defaultContext, SessionHandle sessionId, EndpointVersion endpointVersion, Configuration sessionConf, URLClassLoader classLoader, SessionContext.SessionState sessionState, OperationManager operationManager)
-
-
Method Detail
-
getSessionId
public SessionHandle getSessionId()
-
getSessionConf
public Configuration getSessionConf()
-
getOperationManager
public OperationManager getOperationManager()
-
getEndpointVersion
public EndpointVersion getEndpointVersion()
-
getSessionState
public SessionContext.SessionState getSessionState()
-
getDefaultContext
public DefaultContext getDefaultContext()
-
getUserClassloader
public URLClassLoader getUserClassloader()
-
getPlanCacheManager
@Nullable public PlanCacheManager getPlanCacheManager()
-
reset
public void reset(String key)
-
reset
public void reset()
-
createOperationExecutor
public OperationExecutor createOperationExecutor(Configuration executionConfig)
-
isStatementSetState
public boolean isStatementSetState()
-
enableStatementSet
public void enableStatementSet()
-
disableStatementSet
public void disableStatementSet()
-
getStatementSetOperations
public List<ModifyOperation> getStatementSetOperations()
-
addStatementSetOperation
public void addStatementSetOperation(ModifyOperation operation)
-
open
public void open()
-
close
public void close()
Close resources, e.g. catalogs.
-
create
public static SessionContext create(DefaultContext defaultContext, SessionHandle sessionId, SessionEnvironment environment, ExecutorService operationExecutorService)
-
initializeConfiguration
protected static Configuration initializeConfiguration(DefaultContext defaultContext, SessionEnvironment environment, SessionHandle sessionId)
-
initializeSessionState
protected static SessionContext.SessionState initializeSessionState(SessionEnvironment environment, Configuration configuration, ResourceManager resourceManager)
-
-