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) |
getRowNumberSqlbeforeRewrite, escapeQuotes, isAggregateFunctionSupported, isFirstRowSupported, isMaxRowsSupported, isScalarFunctionSupported, needsQuoting, rewriteFilterItem, rewriteFilterItemWithOperandLiteral, rewriteTimestampgetColumnType, getDataContext, getResultSetValue, isSchemaIncludedInColumnPaths, isSupportedVersion, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectClause, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamppublic HiveQueryRewriter(JdbcDataContext dataContext)
public String rewriteQuery(Query query)
rewriteQuery in interface IQueryRewriterrewriteQuery in class AbstractQueryRewriterpublic String rewriteColumnType(ColumnType columnType, Integer columnSize)
IQueryRewriterrewriteColumnType in interface IQueryRewriterrewriteColumnType in class DefaultQueryRewritercolumnType - the (non-null) ColumnType to rewritecolumnSize - the (possibly null) column size that may or may not have been
specifiedpublic boolean isTransactional()
IQueryRewriterisTransactional in interface IQueryRewriterisTransactional in class AbstractQueryRewriterpublic boolean isPrimaryKeySupported()
IQueryRewriterisPrimaryKeySupported in interface IQueryRewriterisPrimaryKeySupported in class DefaultQueryRewriterCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.