Class Db2QueryStringBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
-
- com.amazonaws.athena.connectors.db2.Db2QueryStringBuilder
-
public class Db2QueryStringBuilder extends JdbcSplitQueryBuilder
-
-
Field Summary
-
Fields inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
emptyString
-
-
Constructor Summary
Constructors Constructor Description Db2QueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getFromClauseWithSplit(String catalog, String schema, String table, Split split)
Formatting SQL query statement.protected List<String>
getPartitionWhereClauses(Split split)
Creates partition framing clause by taking information from split property.-
Methods inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
appendLimitOffset, appendLimitOffset, buildSql, extractOrderByClause, prepareStatementWithSql, quote, toPredicate
-
-
-
-
Constructor Detail
-
Db2QueryStringBuilder
public Db2QueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
-
Method Detail
-
getFromClauseWithSplit
protected String getFromClauseWithSplit(String catalog, String schema, String table, Split split)
Formatting SQL query statement. Adding period (.) after catalog and schema name and FROM before table name.- Specified by:
getFromClauseWithSplit
in classJdbcSplitQueryBuilder
- Parameters:
catalog
-schema
-table
-split
-- Returns:
-
getPartitionWhereClauses
protected List<String> getPartitionWhereClauses(Split split)
Creates partition framing clause by taking information from split property.- Specified by:
getPartitionWhereClauses
in classJdbcSplitQueryBuilder
- Parameters:
split
-- Returns:
-
-