module Mapred_rfun:Registered functions (low-level)sig..end
Mapred_toolkit for how to use it safely.type ('a -> 'b) rfun
(int -> string) rfun.
An rfun is marshallable.
exception Rfun_not_found of string
val register : string -> ('a -> 'b) -> ('a -> 'b) rfunregister name f: Registers the function f under name. The
name must be unique, and must not start with an underscore.
Registrations are only possible in the initialization phase of
the program, because they must be done identically in all
running instances of the program (i.e. on all task nodes).
val finish : unit -> unitval lookup : ('a -> 'b) rfun -> 'a -> 'bval get_id : ('a -> 'b) rfun -> stringval apply_partially : ('a -> 'b -> 'c) rfun -> 'a -> ('b -> 'c) rfunval p4_new_file : (unit -> unit) -> unitmapred.mlp to announce a new source fileval p4_register : (unit -> unit) -> ('a -> 'b) -> ('a -> 'b) rfunmapred.mlp to register a function with an automatic name