|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.materialize.SortPlan
public class SortPlan
The Plan class for the sort operator.
| Constructor Summary | |
|---|---|
SortPlan(Plan p,
List<String> sortfields,
Transaction tx)
Creates a sort plan for the specified query. |
|
| Method Summary | |
|---|---|
int |
blocksAccessed()
Returns the number of blocks in the sorted table, which is the same as it would be in a materialized table. |
int |
distinctValues(String fldname)
Returns the number of distinct field values in the sorted table, which is the same as in the underlying query. |
Scan |
open()
This method is where most of the action is. |
int |
recordsOutput()
Returns the number of records in the sorted table, which is the same as in the underlying query. |
Schema |
schema()
Returns the schema of the sorted table, which is the same as in the underlying query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortPlan(Plan p,
List<String> sortfields,
Transaction tx)
p - the plan for the underlying querysortfields - the fields to sort bytx - 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 | |||||||||