|
||||||||||
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 transactionMethod Detail |
---|
public Scan open()
open
in interface Plan
Plan.open()
public int blocksAccessed()
blocksAccessed
in interface Plan
Plan.blocksAccessed()
public int recordsOutput()
recordsOutput
in interface Plan
Plan.recordsOutput()
public int distinctValues(String fldname)
distinctValues
in interface Plan
fldname
- the name of a field
Plan.distinctValues(java.lang.String)
public Schema schema()
schema
in interface Plan
Plan.schema()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |