Interface JdbcDialectFactory
-
- All Known Implementing Classes:
DerbyDialectFactory,MySqlDialectFactory,OracleDialectFactory,PostgresDialectFactory,SqlServerDialectFactory
@PublicEvolving public interface JdbcDialectFactoryA factory to create a specificJdbcDialect. This factory is used with Java's Service Provider Interfaces (SPI) for discovering.Classes that implement this interface can be added to the "META_INF/services/org.apache.flink.connector.jdbc.dialect.JdbcDialectFactory" file of a JAR file in the current classpath to be found.
- See Also:
JdbcDialect
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptsURL(String url)Retrieves whether the dialect thinks that it can open a connection to the given URL.JdbcDialectcreate()
-
-
-
Method Detail
-
acceptsURL
boolean acceptsURL(String url)
Retrieves whether the dialect thinks that it can open a connection to the given URL. Typically, dialects will returntrueif they understand the sub-protocol specified in the URL andfalseif they do not.- Parameters:
url- the URL of the database- Returns:
trueif this dialect understands the given URL;falseotherwise.
-
create
JdbcDialect create()
- Returns:
- Creates a new instance of the
JdbcDialect.
-
-