|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.catalog.FarragoTableStatistics
public class FarragoTableStatistics
This class reads statistics for a Farrago table from data stored in the catalog.
Field Summary | |
---|---|
private Timestamp |
labelTimestamp
|
private FarragoRepos |
repos
|
private FemAbstractColumnSet |
table
|
Constructor Summary | |
---|---|
FarragoTableStatistics(FarragoRepos repos,
FemAbstractColumnSet table)
Deprecated. |
|
FarragoTableStatistics(FarragoRepos repos,
FemAbstractColumnSet table,
Timestamp labelTimestamp)
Initialize an object for retrieving table statistics, optionally based on a label setting. |
Method Summary | |
---|---|
RelStatColumnStatistics |
getColumnStatistics(int ordinal,
SargIntervalSequence predicate)
Returns statistics pertaining to a column specified by the 0-based ordinal and the sargable predicates associated with that column. |
Double |
getRowCount()
Returns the number of rows in a relation, as determined by statistics |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private FarragoRepos repos
private FemAbstractColumnSet table
private Timestamp labelTimestamp
Constructor Detail |
---|
public FarragoTableStatistics(FarragoRepos repos, FemAbstractColumnSet table)
repos
- the repository containing statstable
- the table for which to retrieve statspublic FarragoTableStatistics(FarragoRepos repos, FemAbstractColumnSet table, Timestamp labelTimestamp)
repos
- the repository containing statstable
- the table for which to retrieve statslabelTimestamp
- the creation timestamp of the label that determines
which stats to retrieve; null if there is no label settingMethod Detail |
---|
public Double getRowCount()
RelStatSource
getRowCount
in interface RelStatSource
public RelStatColumnStatistics getColumnStatistics(int ordinal, SargIntervalSequence predicate)
RelStatSource
getColumnStatistics
in interface RelStatSource
ordinal
- zero based column ordinalpredicate
- associated predicates(s), evaluated as intervals
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |