XmlIndexSpecification::addIndex |
#include <DbXml.hpp>void XmlIndexSpecification::addIndex(const std::string &uri, const std::string &name, const std::string &index); bool XmlIndexSpecification::find(const std::string &uri, const std::string &name, std::string &index); bool XmlIndexSpecification::next(std::string &uri, std::string &name, std::string &index); void XmlIndexSpecification::reset();
The XmlIndexSpecification interface provides methods for specifying the indexing of a container. Indexing is specified by providing the name of a node and a list of indexing strategies for that node. The node name can be either that of an element or attribute node. For example, in the XML fragment "<art title='...'/>" there are two node names that index strategies could be specified for, the element node name is 'art', and the attribute node name is 'title'. See the Indexing section of the reference guide for detailed information on designing an indexing strategy for your application.
Applications can specify a default indexing strategy for all nodes in a container by declaring an indexing strategy for the default document node. The name of the node is "default" and its namespace URI is "http://www.sleepycat.com/2002/dbxml". These can be referenced using the Berkeley DB XML constants DbXml::metaDataName_default and DbXml::metaDataNamespace_uri. When a container is first created the indexing strategy specified for the default document node is 'none-none-none-none'.
The XmlIndexSpecification::addIndex method adds indexing strategies for a named document node.
The XmlIndexSpecification::find method returns the indexing strategies for a named document node.
Returns the index strategies defined for this node.
The XmlIndexSpecification::reset and XmlIndexSpecification::next methods comprise the iteration interface. The XmlIndexSpecification::reset method method resets the iterator.
The XmlIndexSpecification::reset and XmlIndexSpecification::next methods comprise the iteration interface. The XmlIndexSpecification::next returns the next document node name and its indexing strategy.
Returns the next document node name and its indexing strategy.
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.