use of org.apache.flink.table.client.gateway.context.SessionContext in project flink by apache.
the class LocalExecutor method openSession.
@Override
public String openSession(@Nullable String sessionId) throws SqlExecutionException {
SessionContext sessionContext = LocalContextUtils.buildSessionContext(sessionId, defaultContext);
sessionId = sessionContext.getSessionId();
if (this.contextMap.containsKey(sessionId)) {
throw new SqlExecutionException("Found another session with the same session identifier: " + sessionId);
} else {
this.contextMap.put(sessionId, sessionContext);
}
return sessionId;
}
use of org.apache.flink.table.client.gateway.context.SessionContext in project flink by apache.
the class LocalExecutor method removeJar.
@Override
public void removeJar(String sessionId, String jarUrl) {
final SessionContext context = getSessionContext(sessionId);
context.removeJar(jarUrl);
}
use of org.apache.flink.table.client.gateway.context.SessionContext in project flink by apache.
the class LocalExecutor method resetSessionProperty.
@Override
public void resetSessionProperty(String sessionId, String key) throws SqlExecutionException {
SessionContext context = getSessionContext(sessionId);
context.reset(key);
}
Aggregations