looking for a value in indexed or collection property using Esper

StackOverflow https://stackoverflow.com/questions/23293510

  •  09-07-2023
  •  | 
  •  

سؤال

I have an event which has indexed property ids (List ). How to write query which matches a value in ids ?

class MyEvent
{
    private List<Integer> allIds;
    getters/setters
}
هل كانت مفيدة؟

المحلول

Have a look at the enumeration method such as "allIds.where(v => v = 5)"

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top