|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.metadata.IndexInfo
public class IndexInfo
The information about an index. This information is used by the query planner in order to estimate the costs of using the index, and to obtain the schema of the index records. It's methods are essentially the same as those of Plan.
Constructor Summary | |
---|---|
IndexInfo(String idxname,
String tblname,
String fldname,
Transaction tx)
Creates an IndexInfo object for the specified index. |
Method Summary | |
---|---|
int |
blocksAccessed()
Estimates the number of block accesses required to find all index records having a particular search key. |
int |
distinctValues(String fname)
Returns the distinct values for a specified field in the underlying table, or 1 for the indexed field. |
Index |
open()
Opens the index described by this object. |
int |
recordsOutput()
Returns the estimated number of records having a search key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexInfo(String idxname, String tblname, String fldname, Transaction tx)
idxname
- the name of the indextblname
- the name of the tablefldname
- the name of the indexed fieldtx
- the calling transactionMethod Detail |
---|
public Index open()
public int blocksAccessed()
public int recordsOutput()
public int distinctValues(String fname)
fname
- the specified field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |