org.apache.hadoop.hive.ql.optimizer.index
Class RewriteCanApplyCtx

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.index.RewriteCanApplyCtx
All Implemented Interfaces:
NodeProcessorCtx

public final class RewriteCanApplyCtx
extends Object
implements NodeProcessorCtx

RewriteCanApplyCtx class stores the context for the RewriteCanApplyProcFactory to determine if any index can be used and if the input query meets all the criteria for rewrite optimization.


Method Summary
 void addTable(String baseTableName, String indexTableName)
           
 String findBaseTable(String baseTableName)
           
 int getAggFuncCnt()
           
 Set<String> getAggFuncColList()
           
 String getAggFunction()
           
 String getBaseTableName()
           
 Map<String,String> getBaseToIdxTableMap()
           
 Set<String> getGbKeyNameList()
           
static RewriteCanApplyCtx getInstance(ParseContext parseContext)
           
 ParseContext getParseContext()
           
 Set<String> getPredicateColumnsList()
           
 Set<String> getSelectColumnsList()
           
 boolean isAggFuncColsFetchException()
           
 boolean isAggFuncIsNotCount()
           
 boolean isCountOfOne()
           
 boolean isCountOnAllCols()
           
 boolean isGbyKeysFetchException()
           
 boolean isQueryHasGroupBy()
           
 boolean isQueryHasMultipleTables()
           
 boolean isSelClauseColsFetchException()
           
 boolean isWhrClauseColsFetchException()
           
 void setAggFuncCnt(int aggFuncCnt)
           
 void setAggFuncColList(Set<String> aggFuncColList)
           
 void setAggFuncColsFetchException(boolean aggFuncColsFetchException)
           
 void setAggFuncIsNotCount(boolean aggFuncIsNotCount)
           
 void setAggFunction(String aggFunction)
           
 void setBaseTableName(String baseTableName)
           
 void setCountOfOne(boolean countOfOne)
           
 void setCountOnAllCols(boolean countOnAllCols)
           
 void setGbKeyNameList(Set<String> gbKeyNameList)
           
 void setGbyKeysFetchException(boolean gbyKeysFetchException)
           
 void setPredicateColumnsList(Set<String> predicateColumnsList)
           
 void setQueryHasGroupBy(boolean queryHasGroupBy)
           
 void setQueryHasMultipleTables(boolean queryHasMultipleTables)
           
 void setSelClauseColsFetchException(boolean selClauseColsFetchException)
           
 void setSelectColumnsList(Set<String> selectColumnsList)
           
 void setWhrClauseColsFetchException(boolean whrClauseColsFetchException)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RewriteCanApplyCtx getInstance(ParseContext parseContext)

isQueryHasGroupBy

public boolean isQueryHasGroupBy()

setQueryHasGroupBy

public void setQueryHasGroupBy(boolean queryHasGroupBy)

isAggFuncIsNotCount

public boolean isAggFuncIsNotCount()

setAggFuncIsNotCount

public void setAggFuncIsNotCount(boolean aggFuncIsNotCount)

getBaseToIdxTableMap

public Map<String,String> getBaseToIdxTableMap()

setAggFunction

public void setAggFunction(String aggFunction)

getAggFunction

public String getAggFunction()

setAggFuncColsFetchException

public void setAggFuncColsFetchException(boolean aggFuncColsFetchException)

isAggFuncColsFetchException

public boolean isAggFuncColsFetchException()

setWhrClauseColsFetchException

public void setWhrClauseColsFetchException(boolean whrClauseColsFetchException)

isWhrClauseColsFetchException

public boolean isWhrClauseColsFetchException()

setSelClauseColsFetchException

public void setSelClauseColsFetchException(boolean selClauseColsFetchException)

isSelClauseColsFetchException

public boolean isSelClauseColsFetchException()

setGbyKeysFetchException

public void setGbyKeysFetchException(boolean gbyKeysFetchException)

isGbyKeysFetchException

public boolean isGbyKeysFetchException()

setCountOnAllCols

public void setCountOnAllCols(boolean countOnAllCols)

isCountOnAllCols

public boolean isCountOnAllCols()

setCountOfOne

public void setCountOfOne(boolean countOfOne)

isCountOfOne

public boolean isCountOfOne()

setQueryHasMultipleTables

public void setQueryHasMultipleTables(boolean queryHasMultipleTables)

isQueryHasMultipleTables

public boolean isQueryHasMultipleTables()

getSelectColumnsList

public Set<String> getSelectColumnsList()

setSelectColumnsList

public void setSelectColumnsList(Set<String> selectColumnsList)

getPredicateColumnsList

public Set<String> getPredicateColumnsList()

setPredicateColumnsList

public void setPredicateColumnsList(Set<String> predicateColumnsList)

getGbKeyNameList

public Set<String> getGbKeyNameList()

setGbKeyNameList

public void setGbKeyNameList(Set<String> gbKeyNameList)

getAggFuncColList

public Set<String> getAggFuncColList()

setAggFuncColList

public void setAggFuncColList(Set<String> aggFuncColList)

getAggFuncCnt

public int getAggFuncCnt()

setAggFuncCnt

public void setAggFuncCnt(int aggFuncCnt)

getBaseTableName

public String getBaseTableName()

setBaseTableName

public void setBaseTableName(String baseTableName)

getParseContext

public ParseContext getParseContext()

addTable

public void addTable(String baseTableName,
                     String indexTableName)

findBaseTable

public String findBaseTable(String baseTableName)


Copyright © 2014 The Apache Software Foundation. All rights reserved.