Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

unique

unique

The unique operator is a unary operator that verifies that all events have a different value for the specified property.
You cannot reference more than one property for a topic of a rule. The unique operator works with one property for a topic of a rule.
For example, the following rule verifies that three credit card transactions were processed by different merchants:
WHEN 3 transaction t WITH unique(t.Merch_ID) then response
The following rule verifies that three credit card transactions were processed by different merchants and the total transaction value is greater than $500:
WHEN 3 transaction t WITH unique(t.Merch_ID) AND sum(t.Purchase_Amt) > 500 then response
Consider that two stock topic events have the different symbols, and two bond events have different symbols. The following rule verifies that the stock symbols do not require to be different from the bond symbols:
WHEN 2 stock s, 2 bond b WITH unique(s.symbol) AND unique(b.symbol) then response
The following rule provides the same result using a concatenated syntax:
WHEN 2 stock s, 2 bond b WITH unique(s.symbol, b.symbol) then response
The unique operator is deprecated. The "distinct" operator replaces the "unique" operator.
See: Using the distinct, group by, and ummatched Filters

0 COMMENTS

We’d like to hear from you!