|
Berkeley DB XML version 2.2.13 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.dbxml.XmlStatistics
The XmlStatistics class encapsulates statistical information
about the number of keys in existence for a given index. Statistics are
available for the total number of keys currently in use by the index,
as well as the total number of unique keys in use by the index. Use
getNumberOfIndexedKeys()
and
getNumberOfUniqueKeys()
, respectively, to retrieve
these values.
Be aware that the number the number of keys maintained for an index is a function of the number and size of documents stored in the container, and of the type of index being examined.
XmlStatistics objects are instantiated by XmlContainer.lookupStatistics(java.lang.String, java.lang.String, java.lang.String, com.sleepycat.dbxml.XmlValue)
.
This object is thread-safe.
Constructor Summary | |
XmlStatistics(XmlStatistics arg0)
Copy constructor. |
Method Summary | |
void |
delete()
Free the native resources associated with this object. |
double |
getNumberOfIndexedKeys()
Returns the total number of keys contained by the index for which statistics are being reported. |
double |
getNumberOfUniqueKeys()
Returns the number of unique keys contained in the index for which statistics are being reported. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlStatistics(XmlStatistics arg0) throws XmlException
Method Detail |
public void delete()
public double getNumberOfIndexedKeys() throws XmlException
XmlException
public double getNumberOfUniqueKeys() throws XmlException
XmlException
|
Berkeley DB XML version 2.2.13 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |