Class HiveParserQB


  • public class HiveParserQB
    extends Object
    Counterpart of hive's org.apache.hadoop.hive.ql.parse.QB.
    • Constructor Detail

      • HiveParserQB

        public HiveParserQB​(String outerId,
                            String alias,
                            boolean isSubQ)
    • Method Detail

      • print

        public void print​(String msg)
      • countSelDi

        public void countSelDi()
      • countSel

        public void countSel()
      • exists

        public boolean exists​(String alias)
      • setTabAlias

        public void setTabAlias​(String alias,
                                String originTableName,
                                String qualifiedName)
        Maintain table alias -> (originTableName, qualifiedName).
        Parameters:
        alias - table alias
        originTableName - table name that be actually specified, may be "table", "db.table", "catalog.db.table"
        qualifiedName - table name with full path, always is "catalog.db.table"
      • addAlias

        public void addAlias​(String alias)
      • getId

        public String getId()
      • getNumSels

        public int getNumSels()
      • getSubqAliases

        public Set<String> getSubqAliases()
      • getTabAliases

        public Set<String> getTabAliases()
      • getTabNameForAlias

        public String getTabNameForAlias​(String alias)
      • getOriginTabNameForAlias

        public String getOriginTabNameForAlias​(String alias)
      • setIsQuery

        public void setIsQuery​(boolean isQuery)
      • getIsQuery

        public boolean getIsQuery()
        Set to true in SemanticAnalyzer.getMetadataForDestFile, if destination is a file and query is not CTAS.
      • isSimpleSelectQuery

        public boolean isSimpleSelectQuery()
      • getTableDesc

        public org.apache.hadoop.hive.ql.plan.CreateTableDesc getTableDesc()
      • isCTAS

        public boolean isCTAS()
      • getSkewedColumnNames

        public List<String> getSkewedColumnNames​(String alias)
        Retrieve skewed column name for a table.
      • hasWindowingSpec

        public boolean hasWindowingSpec​(String dest)
      • incrNumSubQueryPredicates

        public int incrNumSubQueryPredicates()
      • isInsideView

        public boolean isInsideView()
      • setInsideView

        public void setInsideView​(boolean insideView)
      • getAliasInsideView

        public Set<String> getAliasInsideView()
      • containsQueryWithoutSourceTable

        public boolean containsQueryWithoutSourceTable()
        returns true, if the query block contains any query, or subquery without a source table. Like select current_user(), select current_database()
        Returns:
        true, if the query block contains any query without a source table
      • isMaterializedView

        public boolean isMaterializedView()