Rechercher une page de manuel
Sleepycat::XmlStatistics.3pm
Langue: en
Version: 2008-10-21 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
XmlStatistics - A Perl interface to the DbXml XmlStatistics ClassSYNOPSIS
use Sleepycat::DbXml; my $manager = new XmlManager(); ... my $cont = $manager->creatContainer() my $stats = $cont->lookupStatistics([$txn,] $uri, $name, $index [, $xmlvalue]); my $stats = $cont->lookupStatistics([$txn,] $uri, $name, $parent_uri, $parent_name, $index [, $xmlvalue]); $count = $stats->getNumberOfIndexedKeys(); $count = $stats->getNumberOfUniqueKeys();
DESCRIPTION
CONFORMANCE to C++ API
The Perl interface to XmlStatistics is identical to the C++ API.Constructor
There is no constructor provided for this class. An XmlStatistics object is returned from the XmlContainer::lookupStatistics method. This method can take the following formsmy $stats = $cont->lookupStatistics([$txn,] $uri, $name, $index [, $xmlvalue]); my $stats = $cont->lookupStatistics([$txn,] $uri, $name, $parent_uri, $parent_name, $index [, $xmlvalue]);
Methods
$count = $stats->getNumberOfIndexedKeys();
$count = $stats->getNumberOfIndexedKeys();
Returns the number of keys for the index.
$count = $stats->getNumberOfUniqueKeys();
$count = $stats->getNumberOfUniqueKeys();
Returns the number of unique keys for the index.
EXAMPLES
SEE ALSO
AUTHOR
Paul MarquessContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre