XmlContainer::lookupIndex |
![]() ![]() |
#include <DbXml.hpp>XmlResults XmlContainer::lookupIndex(XmlQueryContext &context, const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue(), u_int32_t flags = 0)
XmlResults XmlContainer::lookupIndex(XmlTransaction &txn, XmlQueryContext &context, const std::string &uri, const std::string &name, const std::string &index, const XmlValue &value = XmlValue(), u_int32_t flags = 0)
XmlResults XmlContainer::lookupIndex(XmlQueryContext &context, 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(), u_int32_t flags = 0)
XmlResults XmlContainer::lookupIndex(XmlTransaction &txn, XmlQueryContext &context, 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(),u_int32_t flags = 0)
NOTE: this interface is deprecated, in favor of using XmlManager::createIndexLookup and XmlIndexLookup::execute.
For a specified index, return all the data referenced by the index's keys, optionally matching a specific value.
Return all the targets for which the identified index has keys. By default, entire documents are returned by this method. However, if the container is of type XmlContainer::NodeStorage (the default container type), and if DBXML_INDEX_NODES is set for the container, then this method will return the individual nodes referenced by the index keys.
Note that you cannot use this form of this method to examine edge indices.
The XmlContainer::lookupIndex method may fail and throw XmlException, encapsulating one of the following non-zero errors:
Return all the targets for which the identified index has keys. By default, entire documents are returned by this method. However, if node storage containers are in use (the default container type) and if DBXML_INDEX_NODES is set for the container, then this method will return the individual nodes referenced by the index keys.
Use this form of this method to return documents indexed by 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.
The XmlContainer::lookupIndex method may fail and throw XmlException, encapsulating one of the following non-zero errors:
![]() ![]() |
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.