Hadoop Module

These functions are in the http://xmlns.oracle.com/hadoop/xquery namespace. The oxh prefix is predeclared and the module is automatically imported.

oxh:find($pattern as xs:string?) as xs:string*

Returns a sequence of file paths that match a pattern.

See Also:

For the file pattern, the globStatus method in the Apache Hadoop Main 2.2.0 API at

http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html#globStatus

oxh:increment-counter($groupName as xs:string, $counterName as xs:string

Increments a user-defined MapReduce job counter by one.

oxh:increment-counter($groupName as xs:string, $counterName as xs:string, $value as xs:integer

Increments the MapReduce job counter by the given value.

oxh:property($name as xs:string?) as xs:string?

Returns the value of a Hadoop configuration property.

$name is the configuration property.