sourCEntral - mobile manpages

pdf

GEARMAN_RESULT_STORE_VALUE

NAME

gearman_result_store_value − Gearmand Documentation, http://gearman.info/

SYNOPSIS

#include <libgearman/gearman.h>
gearman_result_st

gearman_result_st
*gearman_task_result(gearman_task_st *task)
int64_t gearman_result_integer(const
gearman_result_st *self)
bool gearman_result_boolean(const
gearman_result_st *self)
gearman_string_t gearman_result_string(const
gearman_result_st *self)
gearman_return_t gearman_result_store_string(
gearman_result_st *self,
gearman_string_t 
arg)
void gearman_result_store_integer(
gearman_result_st *self,
int64_t 
value)
gearman_return_t gearman_result_store_value(
gearman_result_st *self,
const void 
*value, size_t size)
size_t gearman_result_size(const
gearman_result_st *self)
const char *gearman_result_value(const
gearman_result_st *self)
bool gearman_result_is_null(const
gearman_result_st *self)

Compile and link with −lgearman

DESCRIPTION

The gearman_result_st type represents a result set. gearman_aggregator_fn is passed on these types which it uses to create a final result that is returned to the client.

gearman_task_result() returns gearman_result_st from a gearman_task_st.

A gearman_result_st can return the resulting value as either a char pointer, boolean, gearman_string_t, or int64_t.

SEE ALSO

gearmand(8) libgearman(3) gearman_client_error() or gearman_worker_error()

AUTHOR

Data Differential http://www.datadifferential.com/

COPYRIGHT

2011-2014, Data Differential, http://www.datadifferential.com/

pdf