1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- .TH "GEARMAN_EXECUTE_MAP_REDUCE" "3" "May 24, 2011" "0.20" "Gearmand"
- .SH NAME
- gearman_execute_map_reduce \- Gearmand Documentation
- .
- .nr rst2man-indent-level 0
- .
- .de1 rstReportMargin
- \\$1 \\n[an-margin]
- level \\n[rst2man-indent-level]
- level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
- -
- \\n[rst2man-indent0]
- \\n[rst2man-indent1]
- \\n[rst2man-indent2]
- ..
- .de1 INDENT
- .\" .rstReportMargin pre:
- . RS \\$1
- . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
- . nr rst2man-indent-level +1
- .\" .rstReportMargin post:
- ..
- .de UNINDENT
- . RE
- .\" indent \\n[an-margin]
- .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
- .nr rst2man-indent-level -1
- .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
- .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
- ..
- .\" Man page generated from reStructeredText.
- .
- .SH LIBRARY
- .sp
- C Client Library for Gearmand (libgearman, \-lgearman)
- .SH SYNOPSIS
- .sp
- #include <libgearman/gearman.h>
- .INDENT 0.0
- .TP
- .B gearman_task_st *gearman_execute_map_reduce(gearman_client_st *client, const char *mapper_name, const size_t mapper_length, const char *reducer_name, const size_t reducer_length, const char *unique_str, const size_t unique_length, gearman_work_t *workload, gearman_argument_t *arguments);
- .UNINDENT
- .SH DESCRIPTION
- .sp
- gearman_client_execute_reduce() takes a given :c:type::\fIgearman_argument_t\fP and executs it against a :c:type::\fIgearman_mapper_fn\fP function. This function is specified via the
- mapper_name argument. The mapper function will then break the work up into units, and send each of them to the function named reducer function. Once all work is completed, the mapper function will aggregate the work and return a result.
- .sp
- If any of the units of work error, the job will be aborted. The resulting value will be stored in the :c:type::\fIgearman_task_st\fP.
- .SH RETURN
- .sp
- gearman_client_execute_reduce() returns a pointer to a gearman_task_st. On error a NULL will be returned. The error can be examined with c:function::\fIgearman_client_error()\fP.
- .SH HOME
- .sp
- To find out more information please check:
- \fI\%https://launchpad.net/gearmand\fP
- .SH SEE ALSO
- .sp
- \fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP \fIgearman_client_error\fP
- .SH AUTHOR
- Data Differential http://datadifferential.com/
- .SH COPYRIGHT
- 2011, Data Differential, http://datadifferential.com/
- .\" Generated by docutils manpage writer.
- .\"
- .
|