1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-2180 Update UDAF docs

This commit is contained in:
David Hall
2019-03-06 11:52:01 -06:00
parent e849af0ce6
commit 5dff25e0a0
6 changed files with 93 additions and 3 deletions

View File

@ -5,5 +5,6 @@ Version History
| Version | Date | Changes |
+=========+============+=============================+
| 1.1.0α | 2017-08-25 | - First alpha release |
+---------+------------+-----------------------------+
| 1.2.0α | 2016-05-18 | - Add multi parm support |
+---------+------------+-----------------------------+

View File

@ -49,7 +49,7 @@ master_doc = 'index'
# General information about the project.
project = u'UDAF'
copyright = u'2017, MariaDB Corporation'
copyright = u'2019, MariaDB Corporation'
author = u'MariaDB Corporation'
# The version info for the project you're documenting, acts as replacement for
@ -57,9 +57,9 @@ author = u'MariaDB Corporation'
# built documents.
#
# The short X.Y version.
version = u'1.1'
version = u'1.2'
# The full version, including alpha/beta/rc tags.
release = u'1.1'
release = u'1.2'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -34,3 +34,24 @@ The UDAFMap is where we tell the system about our function. For Columnstore 1.2,
return fm;
}
An alternative method added for 1.2 is to put the following in your .cpp file.
replace "median" with the name of your function:
::
class Add_median_ToUDAFMap
{
public:
Add_median_ToUDAFMap()
{
UDAFMap::getMap()["median"] = new median();
}
};
static Add_median_ToUDAFMap addToMap;
This defines an object whose constructor adds the entry to the UDAFMap. The
static declaration instatiates an object at runtime, thus adding the entry
at startup.

0
utils/udfsdk/docs/source/usage/sourcefile.rst Executable file → Normal file
View File