module Mapred_rfun: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) rfun
register 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 -> unit
val lookup : ('a -> 'b) rfun -> 'a -> 'b
val get_id : ('a -> 'b) rfun -> string
val apply_partially : ('a -> 'b -> 'c) rfun -> 'a -> ('b -> 'c) rfun
val p4_new_file : (unit -> unit) -> unit
mapred.mlp
to announce a new source fileval p4_register : (unit -> unit) -> ('a -> 'b) -> ('a -> 'b) rfun
mapred.mlp
to register a function with an automatic name