hadoop:get-splits( $nsbindings as xs:string*, $doc-selector as xs:string, $query as xs:string ) as item()*
This function returns (forest_id, record_count, host_name) tuples usable with the MarkLogic Connector for Hadoop to generate input splits in advanced input mode.
Use this function to construct a split query in advanced input mode. For details, see the MarkLogic Connector for Hadoop Developer's Guide.
xquery version "1.0-ml"; import module namespace hadoop= "http://marklogic.com/xdmp/hadoop" at "/MarkLogic/hadoop.xqy"; hadoop:get-splits('', 'fn:doc()', 'cts:and-query(())') => 8456374036761185098 97 doc.marklogic.com
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.