tieredstorage:partition-number-forests( $database-id as xs:unsignedLong, $partition-number as xs:unsignedLong ) as xs:unsignedLong*
This function returns the IDs of the forests with the specified partition-number in the named database.
Parameters | |
---|---|
database-id | ID of the database in which the partition resides. |
partition-number | The partition number from which to return the forest IDs. |
xquery version "1.0-ml"; import module namespace ts="http://marklogic.com/xdmp/tieredstorage" at "/MarkLogic/tieredstorage.xqy"; ts:partition-number-forests(xdmp:database("Documents"), 1) (: Returns the IDs of the forests in the number 1 partition in the "Documents" database. :)