|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.index.query.IndexSelectPlan
public class IndexSelectPlan
The Plan class corresponding to the indexselect relational algebra operator.
Constructor Summary | |
---|---|
IndexSelectPlan(Plan p,
IndexInfo ii,
Constant val,
Transaction tx)
Creates a new indexselect node in the query tree for the specified index and selection constant. |
Method Summary | |
---|---|
int |
blocksAccessed()
Estimates the number of block accesses to compute the index selection, which is the same as the index traversal cost plus the number of matching data records. |
int |
distinctValues(String fldname)
Returns the distinct values as defined by the index. |
Scan |
open()
Creates a new indexselect scan for this query |
int |
recordsOutput()
Estimates the number of output records in the index selection, which is the same as the number of search key values for the index. |
Schema |
schema()
Returns the schema of the data table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexSelectPlan(Plan p, IndexInfo ii, Constant val, Transaction tx)
p
- the input tableii
- information about the indexval
- the selection constanttx
- 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 |