MarkLogic Server 11.0 Product Documentation
tieredstorage.partitionForests

tieredstorage.partitionForests(
   database-id as (Number|String),
   partition-name as String,
   [include-replicas as Boolean]
) as Sequence

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

const ts = require('/MarkLogic/tieredstorage');

ts.partitionForests(xdmp.database('Documents'), '2017-October').toArray();
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy