public class SqlGatewayServiceImpl extends Object implements org.apache.flink.table.gateway.api.SqlGatewayService
SqlGatewayService interface.| Constructor and Description |
|---|
SqlGatewayServiceImpl(SessionManager sessionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle) |
void |
closeOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle) |
void |
closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
List<String> |
completeStatement(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String statement,
int position) |
void |
configureSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String statement,
long executionTimeoutMs) |
org.apache.flink.table.gateway.api.operation.OperationHandle |
executeStatement(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String statement,
long executionTimeoutMs,
org.apache.flink.configuration.Configuration executionConfig) |
org.apache.flink.table.gateway.api.results.ResultSet |
fetchResults(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
org.apache.flink.table.gateway.api.results.FetchOrientation orientation,
int maxRows) |
org.apache.flink.table.gateway.api.results.ResultSet |
fetchResults(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
long token,
int maxRows) |
String |
getCurrentCatalog(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
org.apache.flink.table.functions.FunctionDefinition |
getFunctionDefinition(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.catalog.UnresolvedIdentifier functionIdentifier) |
org.apache.flink.table.gateway.api.results.GatewayInfo |
getGatewayInfo() |
org.apache.flink.table.gateway.api.results.OperationInfo |
getOperationInfo(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle) |
org.apache.flink.table.catalog.ResolvedSchema |
getOperationResultSchema(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle) |
Session |
getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
Map<String,String> |
getSessionConfig(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
org.apache.flink.table.gateway.api.endpoint.EndpointVersion |
getSessionEndpointVersion(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> |
getTable(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier) |
Set<String> |
listCatalogs(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
Set<String> |
listDatabases(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String catalogName) |
Set<org.apache.flink.table.gateway.api.results.FunctionInfo> |
listSystemFunctions(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
Set<org.apache.flink.table.gateway.api.results.TableInfo> |
listTables(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String catalogName,
String databaseName,
Set<org.apache.flink.table.catalog.CatalogBaseTable.TableKind> tableKinds) |
Set<org.apache.flink.table.gateway.api.results.FunctionInfo> |
listUserDefinedFunctions(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String catalogName,
String databaseName) |
org.apache.flink.table.gateway.api.session.SessionHandle |
openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment) |
org.apache.flink.table.gateway.api.operation.OperationHandle |
submitOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
Callable<org.apache.flink.table.gateway.api.results.ResultSet> executor) |
public SqlGatewayServiceImpl(SessionManager sessionManager)
public org.apache.flink.table.gateway.api.session.SessionHandle openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
openSession in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic void closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
closeSession in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic void configureSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String statement,
long executionTimeoutMs)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
configureSession in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic Map<String,String> getSessionConfig(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
getSessionConfig in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.endpoint.EndpointVersion getSessionEndpointVersion(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
getSessionEndpointVersion in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.operation.OperationHandle submitOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
Callable<org.apache.flink.table.gateway.api.results.ResultSet> executor)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
submitOperation in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic void cancelOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle)
cancelOperation in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic void closeOperation(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle)
closeOperation in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic org.apache.flink.table.gateway.api.results.OperationInfo getOperationInfo(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle)
getOperationInfo in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic org.apache.flink.table.catalog.ResolvedSchema getOperationResultSchema(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
getOperationResultSchema in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.operation.OperationHandle executeStatement(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
String statement,
long executionTimeoutMs,
org.apache.flink.configuration.Configuration executionConfig)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
executeStatement in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.results.ResultSet fetchResults(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
long token,
int maxRows)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
fetchResults in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.results.ResultSet fetchResults(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.gateway.api.operation.OperationHandle operationHandle,
org.apache.flink.table.gateway.api.results.FetchOrientation orientation,
int maxRows)
fetchResults in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic String getCurrentCatalog(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
getCurrentCatalog in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic Set<String> listCatalogs(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
listCatalogs in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic Set<String> listDatabases(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle, String catalogName)
listDatabases in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic Set<org.apache.flink.table.gateway.api.results.TableInfo> listTables(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle, String catalogName, String databaseName, Set<org.apache.flink.table.catalog.CatalogBaseTable.TableKind> tableKinds)
listTables in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> getTable(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
getTable in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic Set<org.apache.flink.table.gateway.api.results.FunctionInfo> listUserDefinedFunctions(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle, String catalogName, String databaseName) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
listUserDefinedFunctions in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic Set<org.apache.flink.table.gateway.api.results.FunctionInfo> listSystemFunctions(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
listSystemFunctions in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic org.apache.flink.table.functions.FunctionDefinition getFunctionDefinition(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle,
org.apache.flink.table.catalog.UnresolvedIdentifier functionIdentifier)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
getFunctionDefinition in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic org.apache.flink.table.gateway.api.results.GatewayInfo getGatewayInfo()
getGatewayInfo in interface org.apache.flink.table.gateway.api.SqlGatewayServicepublic List<String> completeStatement(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle, String statement, int position) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
completeStatement in interface org.apache.flink.table.gateway.api.SqlGatewayServiceorg.apache.flink.table.gateway.api.utils.SqlGatewayException@VisibleForTesting public Session getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.