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 class
SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext
The default context ofSqlGatewayEndpointFactory
.static class
SqlGatewayEndpointFactoryUtils.EndpointFactoryHelper
Helper utility for validating all options for aSqlGatewayEndpointFactory
.
-
Field Summary
Fields Modifier and Type Field Description static String
GATEWAY_ENDPOINT_PREFIX
-
Constructor Summary
Constructors Constructor Description SqlGatewayEndpointFactoryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlGatewayEndpointFactoryUtils.EndpointFactoryHelper
createEndpointFactoryHelper(SqlGatewayEndpointFactory endpointFactory, SqlGatewayEndpointFactory.Context context)
Creates a utility that helps to validate options for aSqlGatewayEndpointFactory
.static List<SqlGatewayEndpoint>
createSqlGatewayEndpoint(SqlGatewayService service, Configuration configuration)
Attempts to discover the appropriate endpoint factory and creates the instance of the endpoints.static Map<String,String>
getEndpointConfig(Configuration flinkConf, String identifier)
static String
getSqlGatewayOptionPrefix(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, Configuration configuration)
Attempts to discover the appropriate endpoint factory and creates the instance of the endpoints.
-
getEndpointConfig
public static Map<String,String> getEndpointConfig(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.
-
-