MarkLogic 9 Product Documentation
tieredstorage:database-partition-numbers

tieredstorage:database-partition-numbers(
   $database-id as xs:unsignedLong
) as xs:unsignedLong*

Summary

This function returns the partition numbers of the forests in the database

Parameters
database-id ID of the database in which the partitions reside.

Example


xquery version "1.0-ml"; 
 
import module namespace ts="http://marklogic.com/xdmp/tieredstorage" 
      at "/MarkLogic/tieredstorage.xqy";

ts:database-partition-numbers(xdmp:database("Documents"))
 
(: Returns the partition numbers in the "Documents" database. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy