public class HiveQueryRewriter extends RowNumberQueryRewriter
Constructor and Description |
---|
HiveQueryRewriter(JdbcDataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPrimaryKeySupported()
Determines if the JDBC data source supports primary keys or not.
|
boolean |
isTransactional()
Determines if the JDBC data source supports transactions or not.
|
String |
rewriteColumnType(ColumnType columnType,
Integer columnSize)
Rewrites the name of a column type, as it is written in CREATE TABLE
statements.
|
String |
rewriteQuery(Query query) |
getRowNumberSql
beforeRewrite, escapeQuotes, isAggregateFunctionSupported, isFirstRowSupported, isMaxRowsSupported, isScalarFunctionSupported, needsQuoting, rewriteFilterItem, rewriteFilterItemWithOperandLiteral, rewriteTimestamp
getColumnType, getDataContext, getResultSetValue, isSchemaIncludedInColumnPaths, isSupportedVersion, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectClause, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamp
public HiveQueryRewriter(JdbcDataContext dataContext)
public String rewriteQuery(Query query)
rewriteQuery
in interface IQueryRewriter
rewriteQuery
in class AbstractQueryRewriter
public String rewriteColumnType(ColumnType columnType, Integer columnSize)
IQueryRewriter
rewriteColumnType
in interface IQueryRewriter
rewriteColumnType
in class DefaultQueryRewriter
columnType
- the (non-null) ColumnType
to rewritecolumnSize
- the (possibly null) column size that may or may not have been
specifiedpublic boolean isTransactional()
IQueryRewriter
isTransactional
in interface IQueryRewriter
isTransactional
in class AbstractQueryRewriter
public boolean isPrimaryKeySupported()
IQueryRewriter
isPrimaryKeySupported
in interface IQueryRewriter
isPrimaryKeySupported
in class DefaultQueryRewriter
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.