gearman_execute_map_reduce.3 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .TH "GEARMAN_EXECUTE_MAP_REDUCE" "3" "May 24, 2011" "0.20" "Gearmand"
  2. .SH NAME
  3. gearman_execute_map_reduce \- Gearmand Documentation
  4. .
  5. .nr rst2man-indent-level 0
  6. .
  7. .de1 rstReportMargin
  8. \\$1 \\n[an-margin]
  9. level \\n[rst2man-indent-level]
  10. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  11. -
  12. \\n[rst2man-indent0]
  13. \\n[rst2man-indent1]
  14. \\n[rst2man-indent2]
  15. ..
  16. .de1 INDENT
  17. .\" .rstReportMargin pre:
  18. . RS \\$1
  19. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  20. . nr rst2man-indent-level +1
  21. .\" .rstReportMargin post:
  22. ..
  23. .de UNINDENT
  24. . RE
  25. .\" indent \\n[an-margin]
  26. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  27. .nr rst2man-indent-level -1
  28. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  30. ..
  31. .\" Man page generated from reStructeredText.
  32. .
  33. .SH LIBRARY
  34. .sp
  35. C Client Library for Gearmand (libgearman, \-lgearman)
  36. .SH SYNOPSIS
  37. .sp
  38. #include <libgearman/gearman.h>
  39. .INDENT 0.0
  40. .TP
  41. .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);
  42. .UNINDENT
  43. .SH DESCRIPTION
  44. .sp
  45. 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
  46. 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.
  47. .sp
  48. 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.
  49. .SH RETURN
  50. .sp
  51. 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.
  52. .SH HOME
  53. .sp
  54. To find out more information please check:
  55. \fI\%https://launchpad.net/gearmand\fP
  56. .SH SEE ALSO
  57. .sp
  58. \fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP \fIgearman_client_error\fP
  59. .SH AUTHOR
  60. Data Differential http://datadifferential.com/
  61. .SH COPYRIGHT
  62. 2011, Data Differential, http://datadifferential.com/
  63. .\" Generated by docutils manpage writer.
  64. .\"
  65. .