Support eager
evaluation of all kafka
filters and indicate which filters matched
#209
Labels
enhancement
New feature or request
Support
eager
evaluation of allkafka
filters onKafkaMergedBeginEx
orKafkaFetchBeginEx
.We currently evaluate each
KafkaFilter
lazily, stopping on first success, so we do not know which filter succeeded and which filters failed or were never executed after first successful filter.In some cases, we need to understand the complete set of matching filters that could have contributed to deliver a message.
Therefore, we can add the concept of
evaluation
to thefilters
, indicatingLAZY
(backwards compatible) orEAGER
behavior.Regardless of execution strategy, we can include a filters mask in
KafkaMergedDataEx
orKafkaFetchDataEx
, indicating which filters were evaluated totrue
when delivering the matching message.Note: using
int64
to represent thefilters
mask limits the maximum number of filters for each stream to64
, which is acceptable.The text was updated successfully, but these errors were encountered: