MarkLogic Server 11.0 Product Documentation
tieredstorage.partitionNumberForests

tieredstorage.partitionNumberForests(
   database-id as (Number|String),
   partition-number as (Number|String)
) as Sequence

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

// Returns the IDs of the forests in the number 1 partition in the
// 'Documents' database.

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

ts.partitionNumberForests(xdmp.database('Documents'), 1);
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy