org.apache.hadoop.hive.ql
Class QueryProperties
java.lang.Object
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
QueryProperties
public QueryProperties()
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.