Class Hive2QueryRewriter

    • Constructor Detail

      • Hive2QueryRewriter

        public Hive2QueryRewriter​(JdbcDataContext dataContext)
    • Method Detail

      • rewriteColumnType

        public String rewriteColumnType​(org.apache.metamodel.schema.ColumnType columnType,
                                        Integer columnSize)
        Description copied from interface: IQueryRewriter
        Rewrites the name of a column type, as it is written in CREATE TABLE statements. Some databases dont support all column types, or have different names for them. The implementation of this method will do that conversion.
        Specified by:
        rewriteColumnType in interface IQueryRewriter
        Overrides:
        rewriteColumnType in class DefaultQueryRewriter
        Parameters:
        columnType - the (non-null) ColumnType to rewrite
        columnSize - the (possibly null) column size that may or may not have been specified
        Returns:
      • isTransactional

        public boolean isTransactional()
        Description copied from interface: IQueryRewriter
        Determines if the JDBC data source supports transactions or not. Usually this is the case since JDBC is designed for ACID compliant databases, but in some cases the JDBC interface is used also to facilitate connectivity to non-transactional data source such as Apache Hive and others.
        Specified by:
        isTransactional in interface IQueryRewriter
        Overrides:
        isTransactional in class AbstractQueryRewriter
        Returns: