Class MySqlQueryStringBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
-
- com.amazonaws.athena.connectors.mysql.MySqlQueryStringBuilder
-
public class MySqlQueryStringBuilder extends JdbcSplitQueryBuilder
ExtendsJdbcSplitQueryBuilder
and implements MySql specific SQL clauses for split. MySql provides named partitions which can be used in a FROM clause.
-
-
Field Summary
-
Fields inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
emptyString
-
-
Constructor Summary
Constructors Constructor Description MySqlQueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
extractOrderByClause(Constraints constraints)
protected String
getFromClauseWithSplit(String catalog, String schema, String table, Split split)
protected List<String>
getPartitionWhereClauses(Split split)
-
Methods inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
appendLimitOffset, appendLimitOffset, buildSql, prepareStatementWithSql, quote, toPredicate
-
-
-
-
Constructor Detail
-
MySqlQueryStringBuilder
public MySqlQueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
-
Method Detail
-
getFromClauseWithSplit
protected String getFromClauseWithSplit(String catalog, String schema, String table, Split split)
- Specified by:
getFromClauseWithSplit
in classJdbcSplitQueryBuilder
-
getPartitionWhereClauses
protected List<String> getPartitionWhereClauses(Split split)
- Specified by:
getPartitionWhereClauses
in classJdbcSplitQueryBuilder
-
extractOrderByClause
protected String extractOrderByClause(Constraints constraints)
- Overrides:
extractOrderByClause
in classJdbcSplitQueryBuilder
-
-