Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup Class Reference
Collaboration diagram for com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup:

Public Member Functions

 PartitionGroup (SortGroup sortGroup)
 
boolean isCompatible (SortGroup sortGroup)
 
void add (SortGroup sortGroup)
 
void merge (PartitionGroup other)
 
void orderSortGroups ()
 

Public Attributes

List< ExprpartitionByExprs
 
List< SortGroupsortGroups = Lists.newArrayList()
 
int totalOutputTupleSize = -1
 

Detailed Description

Collection of SortGroups that have compatible partition-by specifications.

Definition at line 751 of file AnalyticPlanner.java.

Constructor & Destructor Documentation

com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.PartitionGroup ( SortGroup  sortGroup)
inline

Member Function Documentation

void com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.add ( SortGroup  sortGroup)
inline
boolean com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.isCompatible ( SortGroup  sortGroup)
inline

True if the partition exprs of sortGroup are compatible with ours. For now that means equality.

Definition at line 768 of file AnalyticPlanner.java.

References com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.partitionByExprs.

Referenced by com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.add().

void com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.merge ( PartitionGroup  other)
inline

Merge 'other' into 'this'

  • partitionByExprs is the intersection of the two
  • sortGroups becomes the union

Definition at line 783 of file AnalyticPlanner.java.

References com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.partitionByExprs.

void com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.orderSortGroups ( )
inline

Order sort groups by increasing totalOutputTupleSize. This minimizes the total volume of data that needs to be sorted.

Definition at line 793 of file AnalyticPlanner.java.

References com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.sortGroups.

Member Data Documentation

List<SortGroup> com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.sortGroups = Lists.newArrayList()
int com.cloudera.impala.planner.AnalyticPlanner.PartitionGroup.totalOutputTupleSize = -1

The documentation for this class was generated from the following file: