@Internal public static class SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext extends Object implements SqlGatewayEndpointFactory.Context
SqlGatewayEndpointFactory.| 构造器和说明 |
|---|
DefaultEndpointFactoryContext(SqlGatewayService service,
org.apache.flink.configuration.Configuration flinkConfiguration,
Map<String,String> endpointConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.Contextpublic org.apache.flink.configuration.ReadableConfig getFlinkConfiguration()
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.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.