|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.metadata.StatInfo
public class StatInfo
Holds three pieces of statistical information about a table: the number of blocks, the number of records, and the number of distinct values for each field.
| Constructor Summary | |
|---|---|
StatInfo(int numblocks,
int numrecs)
Creates a StatInfo object. |
|
| Method Summary | |
|---|---|
int |
blocksAccessed()
Returns the estimated number of blocks in the table. |
int |
distinctValues(String fldname)
Returns the estimated number of distinct values for the specified field. |
int |
recordsOutput()
Returns the estimated number of records in the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatInfo(int numblocks,
int numrecs)
numblocks - the number of blocks in the tablenumrecs - the number of records in the table| Method Detail |
|---|
public int blocksAccessed()
public int recordsOutput()
public int distinctValues(String fldname)
fldname - the name of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||