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 ofSqlGatewayEndpointFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultEndpointFactoryContext(SqlGatewayService service, org.apache.flink.configuration.Configuration flinkConfiguration, Map<String,String> endpointConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getEndpointOptions()Returns the options with which the endpoint is created.org.apache.flink.configuration.ReadableConfiggetFlinkConfiguration()Gives read-only access to the configuration of the current session.SqlGatewayServicegetSqlGatewayService()Get the service to execute the request.
-
-
-
Constructor Detail
-
DefaultEndpointFactoryContext
public DefaultEndpointFactoryContext(SqlGatewayService service, org.apache.flink.configuration.Configuration flinkConfiguration, Map<String,String> endpointConfig)
-
-
Method Detail
-
getSqlGatewayService
public SqlGatewayService 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
public Map<String,String> 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
-
-