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

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

public class GroupByDesc
extends AbstractOperatorDesc

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, List<Integer> listGroupingSets, boolean groupingSetsPresent, int groupingSetsPosition, boolean isDistinct)
           
GroupByDesc(GroupByDesc.Mode mode, ArrayList<String> outputColumnNames, ArrayList<ExprNodeDesc> keys, ArrayList<AggregationDesc> aggregators, boolean groupKeyNotReductionKey, float groupByMemoryUsage, float memoryThreshold, List<Integer> listGroupingSets, boolean groupingSetsPresent, int groupingSetsPosition, boolean isDistinct)
           
 
Method Summary
 ArrayList<AggregationDesc> getAggregators()
           
 List<String> getAggregatorStrings()
           
 boolean getBucketGroup()
           
 float getGroupByMemoryUsage()
           
 int getGroupingSetPosition()
           
 boolean getGroupKeyNotReductionKey()
           
 ArrayList<ExprNodeDesc> getKeys()
           
 String getKeyString()
           
 List<Integer> getListGroupingSets()
           
 float getMemoryThreshold()
           
 GroupByDesc.Mode getMode()
           
 String getModeString()
           
 ArrayList<String> getOutputColumnNames()
           
 boolean isDistinct()
           
 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.
 boolean isDontResetAggrsDistinct()
           
 boolean isGroupingSetsPresent()
           
 void setAggregators(ArrayList<AggregationDesc> aggregators)
           
 void setBucketGroup(boolean bucketGroup)
           
 void setDistinct(boolean isDistinct)
           
 void setDontResetAggrsDistinct(boolean dontResetAggrsDistinct)
           
 void setGroupByMemoryUsage(float groupByMemoryUsage)
           
 void setGroupingSetPosition(int groupingSetPosition)
           
 void setGroupingSetsPresent(boolean groupingSetsPresent)
           
 void setGroupKeyNotReductionKey(boolean groupKeyNotReductionKey)
           
 void setKeys(ArrayList<ExprNodeDesc> keys)
           
 void setListGroupingSets(List<Integer> listGroupingSets)
           
 void setMemoryThreshold(float memoryThreshold)
           
 void setMode(GroupByDesc.Mode mode)
           
 void setOutputColumnNames(ArrayList<String> outputColumnNames)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.plan.AbstractOperatorDesc
clone, getOpTraits, getStatistics, setOpTraits, setStatistics, setVectorMode
 
Methods inherited from class java.lang.Object
equals, 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,
                   List<Integer> listGroupingSets,
                   boolean groupingSetsPresent,
                   int groupingSetsPosition,
                   boolean isDistinct)

GroupByDesc

public GroupByDesc(GroupByDesc.Mode mode,
                   ArrayList<String> outputColumnNames,
                   ArrayList<ExprNodeDesc> keys,
                   ArrayList<AggregationDesc> aggregators,
                   boolean groupKeyNotReductionKey,
                   boolean bucketGroup,
                   float groupByMemoryUsage,
                   float memoryThreshold,
                   List<Integer> listGroupingSets,
                   boolean groupingSetsPresent,
                   int groupingSetsPosition,
                   boolean isDistinct)
Method Detail

getMode

public GroupByDesc.Mode getMode()

getModeString

public String getModeString()

setMode

public void setMode(GroupByDesc.Mode mode)

getKeyString

public String getKeyString()

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)

getAggregatorStrings

public List<String> getAggregatorStrings()

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 bucketGroup)

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.


getListGroupingSets

public List<Integer> getListGroupingSets()

setListGroupingSets

public void setListGroupingSets(List<Integer> listGroupingSets)

isGroupingSetsPresent

public boolean isGroupingSetsPresent()

setGroupingSetsPresent

public void setGroupingSetsPresent(boolean groupingSetsPresent)

getGroupingSetPosition

public int getGroupingSetPosition()

setGroupingSetPosition

public void setGroupingSetPosition(int groupingSetPosition)

isDistinct

public boolean isDistinct()

setDistinct

public void setDistinct(boolean isDistinct)

isDontResetAggrsDistinct

public boolean isDontResetAggrsDistinct()

setDontResetAggrsDistinct

public void setDontResetAggrsDistinct(boolean dontResetAggrsDistinct)


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