module Mapred_main:sig..end
val main : Mapred_def.mapred_job -> unitval exec_job : ?options:((string * string) list Pervasives.ref ->
(Arg.key * Arg.spec * Arg.doc) list) ->
Mapred_def.mapred_env -> Mapred_def.mapred_job -> unit
By passing options it is possible to define additional command-line
options as for the Arg module of the standard library.
options is called with a list of keys and values as argument.
By extending this list, additional custom job options can be
set (as for -override).
typespec =string * string * (Mapred_def.mapred_env -> Mapred_def.mapred_job) *
(Mapred_def.mapred_env -> Mapred_def.mapred_job -> unit)
dispatch. A command is described
as 4-tuple (name, usage, get_job, run_job):
name is the command name (taken from the command-line)usage is a help textget_job: must return the job definitionrun_job: starts the jobrun_job can parse further command-line parameters with Arg.val dispatch : spec list -> unit
(command_name, usage, get_job, run_job)
See spec for more information.
Note that exec_job is a valid run_job function, and that
Mapred_toolkit.toolkit_job can be used for get_job.