|
||||||||||
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 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 |