| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.query.TablePlan
public class TablePlan
The Plan class corresponding to a table.
| Constructor Summary | |
|---|---|
TablePlan(String tblname,
          Transaction tx)
Creates a leaf node in the query tree corresponding to the specified table.  | 
|
| Method Summary | |
|---|---|
 int | 
blocksAccessed()
Estimates the number of block accesses for the table, which is obtainable from the statistics manager.  | 
 int | 
distinctValues(String fldname)
Estimates the number of distinct field values in the table, which is obtainable from the statistics manager.  | 
 Scan | 
open()
Creates a table scan for this query.  | 
 int | 
recordsOutput()
Estimates the number of records in the table, which is obtainable from the statistics manager.  | 
 Schema | 
schema()
Determines the schema of the table, which is obtainable from the catalog manager.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TablePlan(String tblname,
                 Transaction tx)
tblname - the name of the tabletx - 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 | |||||||||