|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.catalog.types.StatisticsImpl
public class StatisticsImpl
| Field Summary | |
|---|---|
private long |
numRows
|
private long |
numUnique
|
| Constructor Summary | |
|---|---|
StatisticsImpl()
Zero argument constructor for Formatable Interface |
|
StatisticsImpl(long numRows,
long numUnique)
Constructor for StatisticsImpl. |
|
| Method Summary | |
|---|---|
long |
getRowEstimate()
Returns the estimated number of rows in the index. |
int |
getTypeFormatId()
Get a universally unique identifier for the type of this object. |
void |
readExternal(java.io.ObjectInput in)
|
double |
selectivity(java.lang.Object[] predicates)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private long numRows
private long numUnique
| Constructor Detail |
|---|
public StatisticsImpl(long numRows,
long numUnique)
numRows - number of rows in the conglomerate for which
this statistic is being created.numUnique - number of unique values in the key for which
this statistic is being created.public StatisticsImpl()
| Method Detail |
|---|
public long getRowEstimate()
getRowEstimate in interface Statisticspublic double selectivity(java.lang.Object[] predicates)
selectivity in interface StatisticsStatistics.selectivity(java.lang.Object[])
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here.
java.io.IOException - thrown on errorpublic int getTypeFormatId()
TypedFormat
getTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||