Class Session
- java.lang.Object
-
- org.apache.flink.table.gateway.service.session.Session
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class Session extends Object implements Closeable
Similar to HTTP Session, which could maintain user identity and store user-specific data during multiple request/response interactions between a client and the gateway server.
-
-
Constructor Summary
Constructors Constructor Description Session(SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()OperationExecutorcreateExecutor()OperationExecutorcreateExecutor(org.apache.flink.configuration.Configuration executionConfig)org.apache.flink.table.gateway.api.endpoint.EndpointVersiongetEndpointVersion()longgetLastAccessTime()OperationManagergetOperationManager()org.apache.flink.table.api.internal.PlanCacheManagergetPlanCacheManager()Map<String,String>getSessionConfig()org.apache.flink.table.gateway.api.session.SessionHandlegetSessionHandle()voidtouch()
-
-
-
Constructor Detail
-
Session
public Session(SessionContext sessionContext)
-
-
Method Detail
-
touch
public void touch()
-
getLastAccessTime
public long getLastAccessTime()
-
getSessionHandle
public org.apache.flink.table.gateway.api.session.SessionHandle getSessionHandle()
-
getEndpointVersion
public org.apache.flink.table.gateway.api.endpoint.EndpointVersion getEndpointVersion()
-
getOperationManager
public OperationManager getOperationManager()
-
createExecutor
public OperationExecutor createExecutor()
-
createExecutor
public OperationExecutor createExecutor(org.apache.flink.configuration.Configuration executionConfig)
-
getPlanCacheManager
@Nullable public org.apache.flink.table.api.internal.PlanCacheManager getPlanCacheManager()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-