Statistics for MySQL  1.1
 All Classes Files Functions Variables Typedefs Macros Pages
Macros | Functions
sqlstat.h File Reference

Definition of functions for UDFs and plugins. More...

#include <mysql.h>
#include <plugin.h>
#include <malloc.h>
#include <math.h>
#include <string.h>
Include dependency graph for sqlstat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MYSQL_DYNAMIC_PLUGIN   1
 
#define NOT_FIXED_DEC   31
 Maximum number of digits in double As defined in mysql/sql_string.h.
 

Functions

int sqlstat_plugin_init (void *p)
 Initializes plugin.
 
int sqlstat_plugin_deinit (void *p)
 Deinitializes plugin.
 
int sqlstat_plugin_isloaded ()
 Check if plugin loaded. More...
 
my_bool avgw_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void avgw_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void avgw_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void avgw_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double avgw (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve weighted average. Called at end of group. More...
 
void avgw_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool corr_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void corr_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void corr_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void corr_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double corr (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve correlation coefficient. Called at end of group. More...
 
void corr_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool gini_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void gini_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void gini_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void gini_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double gini (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve gini. Called at end of group. More...
 
void gini_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool median_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void median_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void median_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void median_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double median (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve median. Called at end of group. More...
 
void median_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool rand_mt_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
double rand_mt (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve Mersenne Twister random number. More...
 
void rand_mt_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool rand_norm_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
double rand_norm (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve a variate of the normal distribution. More...
 
void rand_norm_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool rownumber_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
long long rownumber (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve row number. More...
 
void rownumber_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool skewness_pop_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void skewness_pop_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void skewness_pop_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void skewness_pop_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double skewness_pop (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve population moment coefficient of skewness. Called at end of group. More...
 
void skewness_pop_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool skewness_samp_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void skewness_samp_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void skewness_samp_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void skewness_samp_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double skewness_samp (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve sample moment coefficient of skewness. Called at end of group. More...
 
void skewness_samp_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool stddevw_pop_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void stddevw_pop_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void stddevw_pop_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void stddevw_pop_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double stddevw_pop (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve weighted standard deviation of population. Called at end of group. More...
 
void stddevw_pop_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 
my_bool stddevw_samp_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 Called before first usage of function. More...
 
void stddevw_samp_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Reset function and add first group member Calls clear and add. More...
 
void stddevw_samp_clear (UDF_INIT *initid, char *is_null, char *error)
 Called at start of group. More...
 
void stddevw_samp_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Add a member of the group. More...
 
double stddevw_samp (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
 Retrieve weighted standard deviation of sample. Called at end of group. More...
 
void stddevw_samp_deinit (UDF_INIT *initid)
 Called after last access to function. More...
 

Detailed Description

Definition of functions for UDFs and plugins.

Definition in file sqlstat.h.

Function Documentation

double avgw ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve weighted average. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
weighted average

Definition at line 157 of file avgw.c.

void avgw_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 125 of file avgw.c.

Here is the caller graph for this function:

void avgw_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

void avgw_clear(UDF_INIT *initid, char *is_null, char *error) The sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 108 of file avgw.c.

Here is the caller graph for this function:

void avgw_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 177 of file avgw.c.

my_bool avgw_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 55 of file avgw.c.

void avgw_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 94 of file avgw.c.

Here is the call graph for this function:

double corr ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve correlation coefficient. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
correlation coefficient

Definition at line 172 of file corr.c.

void corr_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 134 of file corr.c.

Here is the caller graph for this function:

void corr_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 113 of file corr.c.

Here is the caller graph for this function:

void corr_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 201 of file corr.c.

my_bool corr_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 59 of file corr.c.

void corr_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 99 of file corr.c.

Here is the call graph for this function:

double gini ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve gini. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror occured
Returns
gini

Definition at line 176 of file gini.cc.

void gini_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror occured

Definition at line 146 of file gini.cc.

Here is the caller graph for this function:

void gini_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 129 of file gini.cc.

Here is the caller graph for this function:

void gini_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 209 of file gini.cc.

my_bool gini_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 76 of file gini.cc.

void gini_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 115 of file gini.cc.

Here is the call graph for this function:

double median ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve median. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror occured
Returns
median

Definition at line 145 of file median.cc.

void median_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror occured

Definition at line 119 of file median.cc.

Here is the caller graph for this function:

void median_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 102 of file median.cc.

Here is the caller graph for this function:

void median_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 183 of file median.cc.

my_bool median_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 53 of file median.cc.

void median_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 88 of file median.cc.

Here is the call graph for this function:

double rand_mt ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve Mersenne Twister random number.

A double random number in the range [0,1[ is generated. It has 53 random bits.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
random number

Definition at line 81 of file rand_mt.cc.

Here is the call graph for this function:

void rand_mt_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 92 of file rand_mt.cc.

my_bool rand_mt_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Checksparameters.
Indicate type of return value.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 48 of file rand_mt.cc.

Here is the call graph for this function:

double rand_norm ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve a variate of the normal distribution.

The default value for the mean $\mu$ is 0, the default value of the standard deviation $\sigma$ is 1.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
random number

Definition at line 84 of file rand_norm.cc.

Here is the call graph for this function:

void rand_norm_deinit ( UDF_INIT *  initid)

Called after last access to function.

Parameters
initid

Definition at line 111 of file rand_norm.cc.

my_bool rand_norm_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Checksparameters.
Indicate type of return value.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 46 of file rand_norm.cc.

Here is the call graph for this function:

long long rownumber ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve row number.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
row number

Definition at line 84 of file rownumber.c.

void rownumber_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter.

Parameters
initid

Definition at line 104 of file rownumber.c.

my_bool rownumber_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Checksparameters.
Indicate type of return value.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 51 of file rownumber.c.

double skewness_pop ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve population moment coefficient of skewness. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
population moment coefficient of skewness

Definition at line 163 of file skewness_pop.c.

void skewness_pop_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 129 of file skewness_pop.c.

Here is the caller graph for this function:

void skewness_pop_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

void skewness_pop_clear(UDF_INIT *initid, char *is_null, char *error) The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 110 of file skewness_pop.c.

Here is the caller graph for this function:

void skewness_pop_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 200 of file skewness_pop.c.

my_bool skewness_pop_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 57 of file skewness_pop.c.

void skewness_pop_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 96 of file skewness_pop.c.

Here is the call graph for this function:

double skewness_samp ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve sample moment coefficient of skewness. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
sample moment coefficient of skewness

Definition at line 164 of file skewness_samp.c.

void skewness_samp_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 130 of file skewness_samp.c.

Here is the caller graph for this function:

void skewness_samp_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

void skewness_samp_clear(UDF_INIT *initid, char *is_null, char *error) The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 111 of file skewness_samp.c.

Here is the caller graph for this function:

void skewness_samp_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 201 of file skewness_samp.c.

my_bool skewness_samp_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 58 of file skewness_samp.c.

void skewness_samp_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 97 of file skewness_samp.c.

Here is the call graph for this function:

int sqlstat_plugin_isloaded ( )

Check if plugin loaded.

Returns
plugin loaded = 1, plugin not loaded = 0

Definition at line 70 of file sqlplugin.cc.

Here is the caller graph for this function:

double stddevw_pop ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve weighted standard deviation of population. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
weighted standard deviation of population

Definition at line 160 of file stddevw_pop.c.

void stddevw_pop_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 127 of file stddevw_pop.c.

Here is the caller graph for this function:

void stddevw_pop_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

void stddevw_pop_clear(UDF_INIT *initid, char *is_null, char *error) The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 109 of file stddevw_pop.c.

Here is the caller graph for this function:

void stddevw_pop_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 190 of file stddevw_pop.c.

my_bool stddevw_pop_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 56 of file stddevw_pop.c.

void stddevw_pop_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 95 of file stddevw_pop.c.

Here is the call graph for this function:

double stddevw_samp ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Retrieve weighted standard deviation of sample. Called at end of group.

Parameters
initidfunction description
argsargument values
is_nullresult is NULL
errorerror message
Returns
weighted standard deviation of sample

Definition at line 161 of file stddevw_samp.c.

void stddevw_samp_add ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Add a member of the group.

The counter and sums are updated

Parameters
initidfunction description
argsargument values
is_null
errorerror message

Definition at line 128 of file stddevw_samp.c.

Here is the caller graph for this function:

void stddevw_samp_clear ( UDF_INIT *  initid,
char *  is_null,
char *  error 
)

Called at start of group.

void stddevw_samp_clear(UDF_INIT *initid, char *is_null, char *error) The counter and sums are cleared.

Parameters
initidfunction description
is_null
errorerror message

Definition at line 110 of file stddevw_samp.c.

Here is the caller graph for this function:

void stddevw_samp_deinit ( UDF_INIT *  initid)

Called after last access to function.

Deallocate memory for counter and sums.

Parameters
initid

Definition at line 191 of file stddevw_samp.c.

my_bool stddevw_samp_init ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  message 
)

Called before first usage of function.

Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.

Parameters
initidfunction description
argsparameters
messageerror message
Returns
success = 0

Definition at line 57 of file stddevw_samp.c.

void stddevw_samp_reset ( UDF_INIT *  initid,
UDF_ARGS *  args,
char *  is_null,
char *  error 
)

Reset function and add first group member Calls clear and add.

Parameters
initidfunction description
argsargument values
is_null
errorerror message
Deprecated:
Reset is only called by MySQL 4.0 and below. It is implemented for backwards compatibility.

Definition at line 96 of file stddevw_samp.c.

Here is the call graph for this function: