org.apache.hadoop.hive.ql
Class QueryProperties

java.lang.Object
  extended by org.apache.hadoop.hive.ql.QueryProperties

public class QueryProperties
extends Object

QueryProperties. A structure to contain features of a query that are determined during parsing and may be useful for categorizing a query type These inlucde whether the query contains: a join clause, a group by clause, an order by clause, a sort by clause, a group by clause following a join clause, and whether the query uses a script for mapping/reducing


Constructor Summary
QueryProperties()
           
 
Method Summary
 void clear()
           
 int getJoinCount()
           
 int getOuterJoinCount()
           
 boolean hasClusterBy()
           
 boolean hasDistributeBy()
           
 boolean hasGroupBy()
           
 boolean hasJoin()
           
 boolean hasJoinFollowedByGroupBy()
           
 boolean hasOrderBy()
           
 boolean hasPTF()
           
 boolean hasSortBy()
           
 boolean hasWindowing()
           
 void incrementJoinCount(boolean noOuterJoin)
           
 boolean isHasMapGroupBy()
           
 boolean isMapJoinRemoved()
           
 void setHasClusterBy(boolean hasClusterBy)
           
 void setHasDistributeBy(boolean hasDistributeBy)
           
 void setHasGroupBy(boolean hasGroupBy)
           
 void setHasJoinFollowedByGroupBy(boolean hasJoinFollowedByGroupBy)
           
 void setHasMapGroupBy(boolean hasMapGroupBy)
           
 void setHasOrderBy(boolean hasOrderBy)
           
 void setHasPTF(boolean hasPTF)
           
 void setHasSortBy(boolean hasSortBy)
           
 void setHasWindowing(boolean hasWindowing)
           
 void setMapJoinRemoved(boolean mapJoinRemoved)
           
 void setUsesScript(boolean usesScript)
           
 boolean usesScript()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProperties

public QueryProperties()
Method Detail

hasJoin

public boolean hasJoin()

incrementJoinCount

public void incrementJoinCount(boolean noOuterJoin)

getJoinCount

public int getJoinCount()

getOuterJoinCount

public int getOuterJoinCount()

hasGroupBy

public boolean hasGroupBy()

setHasGroupBy

public void setHasGroupBy(boolean hasGroupBy)

hasOrderBy

public boolean hasOrderBy()

setHasOrderBy

public void setHasOrderBy(boolean hasOrderBy)

hasSortBy

public boolean hasSortBy()

setHasSortBy

public void setHasSortBy(boolean hasSortBy)

hasJoinFollowedByGroupBy

public boolean hasJoinFollowedByGroupBy()

setHasJoinFollowedByGroupBy

public void setHasJoinFollowedByGroupBy(boolean hasJoinFollowedByGroupBy)

usesScript

public boolean usesScript()

setUsesScript

public void setUsesScript(boolean usesScript)

hasDistributeBy

public boolean hasDistributeBy()

setHasDistributeBy

public void setHasDistributeBy(boolean hasDistributeBy)

hasClusterBy

public boolean hasClusterBy()

setHasClusterBy

public void setHasClusterBy(boolean hasClusterBy)

hasPTF

public boolean hasPTF()

setHasPTF

public void setHasPTF(boolean hasPTF)

hasWindowing

public boolean hasWindowing()

setHasWindowing

public void setHasWindowing(boolean hasWindowing)

isMapJoinRemoved

public boolean isMapJoinRemoved()

setMapJoinRemoved

public void setMapJoinRemoved(boolean mapJoinRemoved)

isHasMapGroupBy

public boolean isHasMapGroupBy()

setHasMapGroupBy

public void setHasMapGroupBy(boolean hasMapGroupBy)

clear

public void clear()


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