| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.query.SelectPlan
public class SelectPlan
The Plan class corresponding to the select relational algebra operator.
| Constructor Summary | |
|---|---|
SelectPlan(Plan p,
           Predicate pred)
Creates a new select node in the query tree, having the specified subquery and predicate.  | 
|
| Method Summary | |
|---|---|
 int | 
blocksAccessed()
Estimates the number of block accesses in the selection, which is the same as in the underlying query.  | 
 int | 
distinctValues(String fldname)
Estimates the number of distinct field values in the projection.  | 
 Scan | 
open()
Creates a select scan for this query.  | 
 int | 
recordsOutput()
Estimates the number of output records in the selection, which is determined by the reduction factor of the predicate.  | 
 Schema | 
schema()
Returns the schema of the selection, 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 SelectPlan(Plan p,
                  Predicate pred)
p - the subquerypred - the predicate| 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 | |||||||||