Class SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext
java.lang.Object
org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext
- All Implemented Interfaces:
SqlGatewayEndpointFactory.Context
- Enclosing class:
- SqlGatewayEndpointFactoryUtils
@Internal
public static class SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext
extends Object
implements SqlGatewayEndpointFactory.Context
The default context of
SqlGatewayEndpointFactory.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEndpointFactoryContext(SqlGatewayService service, org.apache.flink.configuration.Configuration flinkConfiguration, Map<String, String> endpointConfig) -
Method Summary
Modifier and TypeMethodDescriptionReturns the options with which the endpoint is created.org.apache.flink.configuration.ReadableConfigGives read-only access to the configuration of the current session.Get the service to execute the request.
-
Constructor Details
-
DefaultEndpointFactoryContext
public DefaultEndpointFactoryContext(SqlGatewayService service, org.apache.flink.configuration.Configuration flinkConfiguration, Map<String, String> endpointConfig)
-
-
Method Details
-
getSqlGatewayService
Description copied from interface:SqlGatewayEndpointFactory.ContextGet the service to execute the request.- Specified by:
getSqlGatewayServicein interfaceSqlGatewayEndpointFactory.Context
-
getFlinkConfiguration
public org.apache.flink.configuration.ReadableConfig getFlinkConfiguration()Description copied from interface:SqlGatewayEndpointFactory.ContextGives read-only access to the configuration of the current session.- Specified by:
getFlinkConfigurationin interfaceSqlGatewayEndpointFactory.Context
-
getEndpointOptions
Description copied from interface:SqlGatewayEndpointFactory.ContextReturns the options with which the endpoint is created. All options that are prefixed with the endpoint identifier are included in the map.All the keys in the endpoint options are pruned with the prefix. For example, the option
sql-gateway.endpoint.rest.host's key ishostin the map.An implementation should perform validation of these options.
- Specified by:
getEndpointOptionsin interfaceSqlGatewayEndpointFactory.Context
-