#unique on all properties of an event

34 Views Asked by At

In order for HaltEvent to be unique, all of HaltEvents properties need to be taken into account.

So when creating a window, is there a shortcut / preferred way to say create a unique window with all the event’s properties?

Since there are a number of properties, trying to avoid to write the equivalent of:

context SingleDayContext
create window HaltWindow#unique(a, b, c, d, e, f, g, h, i) as HaltEvent
;
1

There are 1 best solutions below

0
Dakotah North On BEST ANSWER

As I was writing this question, I was experimenting with different options and tried what, in retrospect, should have been obvious upfront.

context SingleDayContext
create window HaltWindow#unique(*) as HaltEvent
;