org.apache.hadoop.hive.ql.parse
Class TableAccessAnalyzer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.TableAccessAnalyzer

public class TableAccessAnalyzer
extends Object

TableAccessAnalyzer walks the operator graph from joins and group bys to the table scan operator backing it. It checks whether the operators in the path are pass-through of the base table (no aggregations/joins), and if the keys are mapped by expressions that do not modify the bucket for the key. If all the keys for a join/group by are clean pass-through of the base table columns, we can consider this operator as a candidate for improvement through bucketing.


Nested Class Summary
 class TableAccessAnalyzer.GroupByProcessor
          Processor for GroupBy operator
 class TableAccessAnalyzer.JoinProcessor
          Processor for Join operator.
 
Constructor Summary
TableAccessAnalyzer()
           
TableAccessAnalyzer(ParseContext pactx)
           
 
Method Summary
 TableAccessInfo analyzeTableAccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableAccessAnalyzer

public TableAccessAnalyzer()

TableAccessAnalyzer

public TableAccessAnalyzer(ParseContext pactx)
Method Detail

analyzeTableAccess

public TableAccessInfo analyzeTableAccess()
                                   throws SemanticException
Throws:
SemanticException


Copyright © 2013 The Apache Software Foundation