public class StatisticsImpl extends java.lang.Object implements Statistics, Formatable
| Modifier and Type | Field and Description |
|---|---|
private long |
numRows |
private long |
numUnique |
| Constructor and Description |
|---|
StatisticsImpl()
Zero argument constructor for Formatable Interface
|
StatisticsImpl(long numRows,
long numUnique)
Constructor for StatisticsImpl.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
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.IOExceptionjava.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()
TypedFormatgetTypeFormatId in interface TypedFormatpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.