tieredstorage:partition-forests( $database-id as xs:unsignedLong, $partition-name as xs:string, [$include-replicas as xs:boolean] ) as xs:unsignedLong*
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. |
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
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.