org.apache.hadoop.hive.ql.plan
Class GroupByDesc

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.GroupByDesc
All Implemented Interfaces:
Serializable

public class GroupByDesc
extends Object
implements Serializable

GroupByDesc.

See Also:
Serialized Form

Nested Class Summary
static class GroupByDesc.Mode
          Mode.
 
Constructor Summary
GroupByDesc()
           
GroupByDesc(GroupByDesc.Mode mode, ArrayList<String> outputColumnNames, ArrayList<ExprNodeDesc> keys, ArrayList<AggregationDesc> aggregators, boolean groupKeyNotReductionKey, boolean bucketGroup, float groupByMemoryUsage, float memoryThreshold)
           
GroupByDesc(GroupByDesc.Mode mode, ArrayList<String> outputColumnNames, ArrayList<ExprNodeDesc> keys, ArrayList<AggregationDesc> aggregators, boolean groupKeyNotReductionKey, float groupByMemoryUsage, float memoryThreshold)
           
 
Method Summary
 ArrayList<AggregationDesc> getAggregators()
           
 boolean getBucketGroup()
           
 float getGroupByMemoryUsage()
           
 boolean getGroupKeyNotReductionKey()
           
 ArrayList<ExprNodeDesc> getKeys()
           
 float getMemoryThreshold()
           
 GroupByDesc.Mode getMode()
           
 String getModeString()
           
 ArrayList<String> getOutputColumnNames()
           
 boolean isDistinctLike()
          Checks if this grouping is like distinct, which means that all non-distinct grouping columns behave like they were distinct - for example min and max operators.
 void setAggregators(ArrayList<AggregationDesc> aggregators)
           
 void setBucketGroup(boolean dataSorted)
           
 void setGroupByMemoryUsage(float groupByMemoryUsage)
           
 void setGroupKeyNotReductionKey(boolean groupKeyNotReductionKey)
           
 void setKeys(ArrayList<ExprNodeDesc> keys)
           
 void setMemoryThreshold(float memoryThreshold)
           
 void setMode(GroupByDesc.Mode mode)
           
 void setOutputColumnNames(ArrayList<String> outputColumnNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByDesc

public GroupByDesc()

GroupByDesc

public GroupByDesc(GroupByDesc.Mode mode,
                   ArrayList<String> outputColumnNames,
                   ArrayList<ExprNodeDesc> keys,
                   ArrayList<AggregationDesc> aggregators,
                   boolean groupKeyNotReductionKey,
                   float groupByMemoryUsage,
                   float memoryThreshold)

GroupByDesc

public GroupByDesc(GroupByDesc.Mode mode,
                   ArrayList<String> outputColumnNames,
                   ArrayList<ExprNodeDesc> keys,
                   ArrayList<AggregationDesc> aggregators,
                   boolean groupKeyNotReductionKey,
                   boolean bucketGroup,
                   float groupByMemoryUsage,
                   float memoryThreshold)
Method Detail

getMode

public GroupByDesc.Mode getMode()

getModeString

public String getModeString()

setMode

public void setMode(GroupByDesc.Mode mode)

getKeys

public ArrayList<ExprNodeDesc> getKeys()

setKeys

public void setKeys(ArrayList<ExprNodeDesc> keys)

getOutputColumnNames

public ArrayList<String> getOutputColumnNames()

setOutputColumnNames

public void setOutputColumnNames(ArrayList<String> outputColumnNames)

getGroupByMemoryUsage

public float getGroupByMemoryUsage()

setGroupByMemoryUsage

public void setGroupByMemoryUsage(float groupByMemoryUsage)

getMemoryThreshold

public float getMemoryThreshold()

setMemoryThreshold

public void setMemoryThreshold(float memoryThreshold)

getAggregators

public ArrayList<AggregationDesc> getAggregators()

setAggregators

public void setAggregators(ArrayList<AggregationDesc> aggregators)

getGroupKeyNotReductionKey

public boolean getGroupKeyNotReductionKey()

setGroupKeyNotReductionKey

public void setGroupKeyNotReductionKey(boolean groupKeyNotReductionKey)

getBucketGroup

public boolean getBucketGroup()

setBucketGroup

public void setBucketGroup(boolean dataSorted)

isDistinctLike

public boolean isDistinctLike()
Checks if this grouping is like distinct, which means that all non-distinct grouping columns behave like they were distinct - for example min and max operators.



Copyright © 2013 The Apache Software Foundation