Class SqlGatewayRestEndpointFactory
- java.lang.Object
-
- org.apache.flink.table.gateway.rest.SqlGatewayRestEndpointFactory
-
- All Implemented Interfaces:
Factory
,SqlGatewayEndpointFactory
public class SqlGatewayRestEndpointFactory extends Object implements SqlGatewayEndpointFactory
The factory for sql gateway.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactory
SqlGatewayEndpointFactory.Context
-
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
The identifier string forSqlGatewayRestEndpointFactory
.
-
Constructor Summary
Constructors Constructor Description SqlGatewayRestEndpointFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlGatewayEndpoint
createSqlGatewayEndpoint(SqlGatewayEndpointFactory.Context context)
Creates an endpoint from the given context and endpoint options.String
factoryIdentifier()
Returns a unique identifier among same factory interfaces.Set<ConfigOption<?>>
optionalOptions()
Returns a set ofConfigOption
that an implementation of this factory consumes in addition toFactory.requiredOptions()
.static Configuration
rebuildRestEndpointOptions(Map<String,String> endpointConfigMap, Map<String,String> flinkConfigMap)
Set<ConfigOption<?>>
requiredOptions()
Returns a set ofConfigOption
that an implementation of this factory requires in addition toFactory.optionalOptions()
.
-
-
-
Field Detail
-
IDENTIFIER
public static final String IDENTIFIER
The identifier string forSqlGatewayRestEndpointFactory
.- See Also:
- Constant Field Values
-
-
Method Detail
-
createSqlGatewayEndpoint
public SqlGatewayEndpoint createSqlGatewayEndpoint(SqlGatewayEndpointFactory.Context context)
Description copied from interface:SqlGatewayEndpointFactory
Creates an endpoint from the given context and endpoint options.The endpoint options have been projected to top-level options (e.g. from
endpoint.port
toport
).- Specified by:
createSqlGatewayEndpoint
in interfaceSqlGatewayEndpointFactory
-
rebuildRestEndpointOptions
public static Configuration rebuildRestEndpointOptions(Map<String,String> endpointConfigMap, Map<String,String> flinkConfigMap)
-
factoryIdentifier
public String factoryIdentifier()
Description copied from interface:Factory
Returns a unique identifier among same factory interfaces.For consistency, an identifier should be declared as one lower case word (e.g.
kafka
). If multiple factories exist for different versions, a version should be appended using "-" (e.g.elasticsearch-7
).- Specified by:
factoryIdentifier
in interfaceFactory
-
requiredOptions
public Set<ConfigOption<?>> requiredOptions()
Description copied from interface:Factory
Returns a set ofConfigOption
that an implementation of this factory requires in addition toFactory.optionalOptions()
.See the documentation of
Factory
for more information.- Specified by:
requiredOptions
in interfaceFactory
-
optionalOptions
public Set<ConfigOption<?>> optionalOptions()
Description copied from interface:Factory
Returns a set ofConfigOption
that an implementation of this factory consumes in addition toFactory.requiredOptions()
.See the documentation of
Factory
for more information.- Specified by:
optionalOptions
in interfaceFactory
-
-