|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.materialize.GroupByPlan
public class GroupByPlan
The Plan class for the groupby operator.
| Constructor Summary | |
|---|---|
GroupByPlan(Plan p,
Collection<String> groupfields,
Collection<AggregationFn> aggfns,
Transaction tx)
Creates a groupby plan for the underlying query. |
|
| Method Summary | |
|---|---|
int |
blocksAccessed()
Returns the number of blocks required to compute the aggregation, which is one pass through the sorted table. |
int |
distinctValues(String fldname)
Returns the number of distinct values for the specified field. |
Scan |
open()
This method opens a sort plan for the specified plan. |
int |
recordsOutput()
Returns the number of groups. |
Schema |
schema()
Returns the schema of the output table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupByPlan(Plan p,
Collection<String> groupfields,
Collection<AggregationFn> aggfns,
Transaction tx)
p - a plan for the underlying querygroupfields - the group fieldsaggfns - the aggregation functionstx - the calling transaction| Method Detail |
|---|
public Scan open()
open in interface PlanPlan.open()public int blocksAccessed()
blocksAccessed in interface PlanPlan.blocksAccessed()public int recordsOutput()
recordsOutput in interface PlanPlan.recordsOutput()public int distinctValues(String fldname)
distinctValues in interface Planfldname - the name of a field
Plan.distinctValues(java.lang.String)public Schema schema()
schema in interface PlanPlan.schema()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||