CCL Reference Company

CCL Reference Company

PUBLIC SAP Event Stream Processor 5.1 SP 12 Document Version: 1.0.1 – 2019-09-23 SAP Event Stream Processor: CCL Reference company. All rights reserved. All rights company. affiliate THE BEST RUN 2019 SAP SE or an SAP SE or an SAP SAP 2019 © Content 1 Introduction................................................................7 2 CCL Language Components....................................................8 2.1 Datatypes..................................................................9 Intervals................................................................12 Decimal and Money Datatypes................................................ 13 2.2 Operators..................................................................13 2.3 Expressions................................................................ 17 2.4 CCL Continuous Queries.......................................................19 2.5 CCL Comments.............................................................20 2.6 Case-Sensitivity.............................................................21 2.7 Order of Elements............................................................22 2.8 Literals................................................................... 23 Time Literals.............................................................23 Boolean Literals...........................................................24 String Literals............................................................25 Numeric Literals..........................................................26 3 CCL Statements............................................................28 3.1 ADAPTER START Statement....................................................29 3.2 ATTACH ADAPTER Statement................................................... 31 3.3 CREATE ERROR STREAM Statement..............................................33 3.4 CREATE FLEX Statement...................................................... 34 3.5 CREATE LIBRARY Statement....................................................38 3.6 CREATE LOG STORE Statement..................................................40 3.7 CREATE MEMORY STORE Statement..............................................42 3.8 CREATE MODULE Statement....................................................43 Example: Creating and Using Modules...........................................46 Example: Parameters in Modules...............................................47 3.9 CREATE REFERENCE Statement.................................................48 3.10 CREATE SCHEMA Statement ................................................... 51 3.11 CREATE SPLITTER Statement...................................................52 3.12 CREATE STREAM Statement....................................................55 3.13 CREATE WINDOW Statement................................................... 59 3.14 DECLARE Statement......................................................... 62 3.15 DECLARE MODEL Statement....................................................64 3.16 IMPORT Statement...........................................................65 SAP Event Stream Processor: CCL Reference 2 PUBLIC Content 3.17 LOAD MODULE Statement......................................................67 4 CCL Clauses...............................................................69 4.1 AGES Clause............................................................... 70 4.2 AS Clause................................................................. 72 4.3 AUTOGENERATE Clause.......................................................73 4.4 CASE Clause............................................................... 75 4.5 EXECUTE MODEL Clause.......................................................76 4.6 FROM Clause...............................................................77 FROM Clause: ANSI Syntax...................................................77 FROM Clause: Comma-Separated Syntax........................................ 79 4.7 GROUP BY Clause........................................................... 80 4.8 GROUP FILTER Clause.........................................................81 4.9 GROUP ORDER BY Clause......................................................82 4.10 HAVING Clause............................................................. 83 4.11 IN Clause..................................................................84 4.12 KEEP Clause............................................................... 86 4.13 MATCHING Clause...........................................................88 4.14 ON Clause: Join Syntax........................................................91 4.15 OUT Clause................................................................92 4.16 PARAMETERS Clause.........................................................93 4.17 PARTITION BY Clause.........................................................94 4.18 PRIMARY KEY Clause.........................................................98 4.19 PROPERTIES Clause.........................................................100 4.20 REFERENCES Clause.........................................................101 4.21 SCHEMA Clause............................................................102 4.22 SELECT Clause.............................................................103 4.23 STORE Clause..............................................................104 4.24 STORES Clause.............................................................105 4.25 UNION Operator............................................................106 4.26 WHERE Clause.............................................................108 5 CCL Functions.............................................................111 5.1 Scalar Functions............................................................112 Numeric Functions........................................................112 String Functions..........................................................152 Conversion Functions......................................................166 XML Functions.......................................................... 200 Date and Time Functions...................................................203 5.2 Aggregate Functions.........................................................230 any()................................................................. 233 avg()................................................................. 234 SAP Event Stream Processor: CCL Reference Content PUBLIC 3 corr().................................................................235 covar_pop() ............................................................236 covar_samp()........................................................... 237 count()................................................................238 count_distinct()..........................................................238 exp_weighted_avg().......................................................239 first().................................................................240 last()..................................................................241 lwm_avg()..............................................................241 max().................................................................242 meandeviation()......................................................... 243 median()...............................................................244 min()................................................................. 245 nth()..................................................................245 recent()............................................................... 246 regr_avgx().............................................................247 regr_avgy().............................................................248 regr_count()............................................................248 regr_intercept()..........................................................249 regr_r2()...............................................................250 regr_slope().............................................................251 regr_sxx()..............................................................251 regr_sxy()..............................................................252 regr_syy()..............................................................253 stddev_pop()............................................................254 stddev_samp().......................................................... 255 sum().................................................................256 valueinserted()..........................................................256 var_pop() ..............................................................257 var_samp().............................................................258 vwap()................................................................259 weighted_avg()..........................................................260 xmlagg()...............................................................261 5.3 Record Functions...........................................................262 Get a Field..............................................................262 Assign a Field........................................................... 263 Assign a Record..........................................................263 getOpcode()............................................................264 setOpcode()............................................................265 5.4 Other Functions............................................................266 cacheSize().............................................................267 SAP Event

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    358 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us