Class DynamicOptionGroupDeterminer
- java.lang.Object
-
- io.siddhi.core.stream.output.sink.DynamicOptionGroupDeterminer
-
- All Implemented Interfaces:
OutputGroupDeterminer
public class DynamicOptionGroupDeterminer extends Object implements OutputGroupDeterminer
This implementation ofOutputGroupDeterminergroups events based on dynamic options of the Sink. Events which are having the same value for all dynamic options are belong to the same group.
-
-
Constructor Summary
Constructors Constructor Description DynamicOptionGroupDeterminer(List<Option> dynamicTransportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecideGroup(Event event)Deciding the group of a given event and returning a unique identifier to identify the group.
-
-
-
Method Detail
-
decideGroup
public String decideGroup(Event event)
Deciding the group of a given event and returning a unique identifier to identify the group. A correct implementation of this method should be returning the same group identifier for all events belongs a give group.- Specified by:
decideGroupin interfaceOutputGroupDeterminer- Parameters:
event- Event that needs to be decided to which group it belongs to- Returns:
- Unique Identifier to identify the group of the event
-
-