#include <DbXml.hpp> XmlStatistics XmlContainer::lookupStatistics(const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue()) XmlStatistics XmlContainer::lookupStatistics(XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue()) XmlStatistics XmlContainer::lookupStatistics(const std::string &uri, const std::string &name, const std::string &parent_uri, const std::string &parent_name, const std::string &index, const XmlValue &value = XmlValue()) XmlStatistics XmlContainer::lookupStatistics(XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &parent_uri, const std::string &parent_name, const std::string &index, const XmlValue &value = XmlValue())
Returns an XmlStatistics object for the identified index. This object identifies the number of keys (both total and unique) maintained for the identified index.
There are two forms of this method: one that you use with non-edge indexes, and one that you use with edge indexes.
#include <DbXml.hpp> XmlStatistics XmlContainer::lookupStatistics(const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue()) XmlStatistics XmlContainer::lookupStatistics(XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue())
Lookup statistics for the identified index. Note that this form of this method cannot be used to return statistics on edge indices.
Parameters are:
If the operation is to be transaction-protected, this parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
Identifies the index for which you want statistics returned. The value supplied here must be a valid index. See XmlIndexSpecification::addIndex for a description of valid index specifications.
#include <DbXml.hpp> XmlStatistics XmlContainer::lookupStatistics(const std::string &uri, const std::string &name, const std::string &parent_uri, const std::string &parent_name, const std::string &index, const XmlValue &value = XmlValue()) XmlStatistics XmlContainer::lookupStatistics(XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &parent_uri, const std::string &parent_name, const std::string &index, const XmlValue &value = XmlValue())
Lookup statistics for the identified index. Use this form of this method to return statistics on edge indices.
Edge indices are indices maintained for those locations in a document where two nodes (a parent node and a child node) meet. See the Berkeley DB XML Getting Started Guide for details.
Parameters are:
If the operation is to be transaction-protected, this parameter is an XmlTransaction handle returned from XmlManager::createTransaction.
Identifies the index for which you want statistics returned. The value supplied here must be a valid index. See XmlIndexSpecification::addIndex for a description of valid index specifications.
The XmlContainer::lookupStatistics
method
may fail and throw
XmlException
, encapsulating one of the
following non-zero errors: