<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.databasePartitionForests.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.databasePartitionForests</api:function-name><api:suggest>xdmp.databasepartitionforests</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>databasepartitionforests</api:suggest><api:function-link mode="xquery" fullname="xdmp:database-partition-forests">/apidoc/8.0/xdmp:database-partition-forests.xml</api:function-link><api:function mode="javascript" name="databasePartitionForests" type="builtin" lib="xdmp" category="UpdateBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.databasePartitionForests"><api:summary>
  Given a value, the function returns a list of forests that have ranges the
  value falls into. This function reports an error if the context database
  doesn't have the range assignment policy configured.
</api:summary><api:params><api:param name="value" type="xs:anyAtomicType"><api:param-description>
  The value, for example, xs:date("2013-01-01").
  </api:param-description><api:param-name>value</api:param-name><api:param-type>xs.anyAtomicType</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.databasePartitionForests(xs.date("2013-01-01"));
=&gt; 17618760155059123769, 71876760154452113797
</pre></api:example></api:function></api:function-page>