Class SqlGatewayEndpointFactoryUtils
- java.lang.Object
-
- org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactoryUtils
-
@PublicEvolving public class SqlGatewayEndpointFactoryUtils extends Object
Util to discover theSqlGatewayEndpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContextThe default context ofSqlGatewayEndpointFactory.static classSqlGatewayEndpointFactoryUtils.EndpointFactoryHelperHelper utility for validating all options for aSqlGatewayEndpointFactory.
-
Field Summary
Fields Modifier and Type Field Description static StringGATEWAY_ENDPOINT_PREFIX
-
Constructor Summary
Constructors Constructor Description SqlGatewayEndpointFactoryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlGatewayEndpointFactoryUtils.EndpointFactoryHelpercreateEndpointFactoryHelper(SqlGatewayEndpointFactory endpointFactory, SqlGatewayEndpointFactory.Context context)Creates a utility that helps to validate options for aSqlGatewayEndpointFactory.static List<SqlGatewayEndpoint>createSqlGatewayEndpoint(SqlGatewayService service, org.apache.flink.configuration.Configuration configuration)Attempts to discover the appropriate endpoint factory and creates the instance of the endpoints.static Map<String,String>getEndpointConfig(org.apache.flink.configuration.Configuration flinkConf, String identifier)static StringgetSqlGatewayOptionPrefix(String identifier)
-
-
-
Field Detail
-
GATEWAY_ENDPOINT_PREFIX
public static final String GATEWAY_ENDPOINT_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSqlGatewayEndpoint
public static List<SqlGatewayEndpoint> createSqlGatewayEndpoint(SqlGatewayService service, org.apache.flink.configuration.Configuration configuration)
Attempts to discover the appropriate endpoint factory and creates the instance of the endpoints.
-
getEndpointConfig
public static Map<String,String> getEndpointConfig(org.apache.flink.configuration.Configuration flinkConf, String identifier)
-
createEndpointFactoryHelper
public static SqlGatewayEndpointFactoryUtils.EndpointFactoryHelper createEndpointFactoryHelper(SqlGatewayEndpointFactory endpointFactory, SqlGatewayEndpointFactory.Context context)
Creates a utility that helps to validate options for aSqlGatewayEndpointFactory.Note: This utility checks for left-over options in the final step.
-
-