2017-04-26 19:16:38 +00:00
Functions for working with external dictionaries
2017-04-03 19:49:50 +00:00
-------
2017-04-26 19:16:38 +00:00
For more information, see the section "External dictionaries".
2017-04-03 19:49:50 +00:00
dictGetUInt8, dictGetUInt16, dictGetUInt32, dictGetUInt64
~~~~~~~~~
dictGetInt8, dictGetInt16, dictGetInt32, dictGetInt64
~~~~~~~~~~
dictGetFloat32, dictGetFloat64
~~~~~~~~~
dictGetDate, dictGetDateTime
~~~~~~~
dictGetString
~~~~~~
`` dictGetT('dict_name', 'attr_name', id) ``
2017-04-26 19:16:38 +00:00
- Gets the value of the 'attr_name' attribute from the 'dict_name' dictionary by the 'id' key.
'dict_name' and 'attr_name' are constant strings.
'id' must be UInt64.
If the 'id' key is not in the dictionary, it returns the default value set in the dictionary definition.
2017-04-03 19:49:50 +00:00
dictGetTOrDefault
~~~~~~~~
`` dictGetT('dict_name', 'attr_name', id, default) ``
2017-04-26 19:16:38 +00:00
Similar to the functions dictGetT, but the default value is taken from the last argument of the function.
2017-04-03 19:49:50 +00:00
dictIsIn
~~~~~~
`` dictIsIn('dict_name', child_id, ancestor_id) ``
2017-04-26 19:16:38 +00:00
- For the 'dict_name' hierarchical dictionary, finds out whether the 'child_id' key is located inside 'ancestor_id' (or matches 'ancestor_id'). Returns UInt8.
2017-04-03 19:49:50 +00:00
dictGetHierarchy
~~~~~~~~
`` dictGetHierarchy('dict_name', id) ``
2017-04-26 19:16:38 +00:00
- For the 'dict_name' hierarchical dictionary, returns an array of dictionary keys starting from 'id' and continuing along the chain of parent elements. Returns Array(UInt64).
2017-04-03 19:49:50 +00:00
dictHas
~~~~~~
`` dictHas('dict_name', id) ``
2017-04-26 19:16:38 +00:00
- check the presence of a key in the dictionary. Returns a value of type UInt8, equal to 0, if there is no key and 1 if there is a key.