public class XmlStatistics
extends java.lang.Object
getNumberOfIndexedKeys()
and
getNumberOfUniqueKeys()
, respectively, to retrieve
these values.
Be aware that 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 and Description |
---|
XmlStatistics(XmlStatistics arg0)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
double |
getSumKeyValueSize()
Returns the sum of the key/value size, which is a measure of
the size of the index.
|
public XmlStatistics(XmlStatistics arg0) throws XmlException
XmlException
public void delete()
public double getNumberOfIndexedKeys() throws XmlException
XmlException
public double getNumberOfUniqueKeys() throws XmlException
XmlException
public double getSumKeyValueSize() throws XmlException
XmlException
Copyright (c) 2004,2014 Oracle. All rights reserved.