@Internal public static class SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext extends Object implements SqlGatewayEndpointFactory.Context
SqlGatewayEndpointFactory.| Constructor and Description |
|---|
DefaultEndpointFactoryContext(SqlGatewayService service,
org.apache.flink.configuration.Configuration flinkConfiguration,
Map<String,String> endpointConfig) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getEndpointOptions()
Returns the options with which the endpoint is created.
|
org.apache.flink.configuration.ReadableConfig |
getFlinkConfiguration()
Gives read-only access to the configuration of the current session.
|
SqlGatewayService |
getSqlGatewayService()
Get the service to execute the request.
|
public DefaultEndpointFactoryContext(SqlGatewayService service, org.apache.flink.configuration.Configuration flinkConfiguration, Map<String,String> endpointConfig)
public SqlGatewayService getSqlGatewayService()
SqlGatewayEndpointFactory.ContextgetSqlGatewayService in interface SqlGatewayEndpointFactory.Contextpublic org.apache.flink.configuration.ReadableConfig getFlinkConfiguration()
SqlGatewayEndpointFactory.ContextgetFlinkConfiguration in interface SqlGatewayEndpointFactory.Contextpublic Map<String,String> getEndpointOptions()
SqlGatewayEndpointFactory.ContextAll the keys in the endpoint options are pruned with the prefix. For example, the
option sql-gateway.endpoint.rest.host's key is host in the map.
An implementation should perform validation of these options.
getEndpointOptions in interface SqlGatewayEndpointFactory.ContextCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.