Loading TOC...

MarkLogic 9 Product Documentation
tieredstorage:partition-number-forests

tieredstorage:partition-number-forests(
   $database-id as xs:unsignedLong,
   $partition-number as xs:unsignedLong
) as xs:unsignedLong*

Summary

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.

Example


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. :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.