countPlusOne.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
  13. },
  14. "description": {
  15. "en_US": "",
  16. "zh_CN": ""
  17. }
  18. },
  19. "name": "countPlusOne",
  20. "functions": [{
  21. "name": "countPlusOne",
  22. "example": "countPlusOne(col1)",
  23. "aggregate": true,
  24. "hint": {
  25. "en_US": "The value of the output parameter length plus one",
  26. "zh_CN": "输出参数长度加一的值"
  27. },
  28. "args": [
  29. {
  30. "name": "field",
  31. "optional": false,
  32. "control": "field",
  33. "type": "any",
  34. "hint": {
  35. "en_US": "The field to calculate the count.",
  36. "zh_CN": "用于计数的字段名"
  37. },
  38. "label": {
  39. "en_US": "Field",
  40. "zh_CN": "字段"
  41. }
  42. }
  43. ],
  44. "return": {
  45. "type": "int",
  46. "hint": {
  47. "en_US": "Count",
  48. "zh_CN": "计数值"
  49. }
  50. },
  51. "node": {
  52. "category": "function",
  53. "icon": "iconPath",
  54. "label": {
  55. "en_US": "Count Plus One",
  56. "zh_CN": "计数后加一"
  57. }
  58. }
  59. }]
  60. }