MarkLogic Server 11.0 Product Documentation
tieredstorage:partition-forests

tieredstorage:partition-forests(
   $database-id as xs:unsignedLong,
   $partition-name as xs:string,
   [$include-replicas as xs:boolean]
) as xs:unsignedLong*

Summary

This function returns a sequence of ids for the forests in the named partition. If the $include-replicas parameter is not specified or is set to false, replica forests are not included. For details, see Tiered Storage in the Administrator's Guide.

Parameters
database-id ID of the database in containing the partition.
partition-name Name of the partition.
include-replicas Whether or not replicas will be included.

Example

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

ts:partition-forests(xdmp:database("Documents"),"2012-April")
=>
8708998620766669503 57548986207876743
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy