Re: ScanQuery for List<...>

2019-01-30 Thread Ilya Kasnacheev
Hello! Can you create a simple reproducer project for this behavior? I could try and debug it. Regards, -- Ilya Kasnacheev пн, 28 янв. 2019 г. в 14:19, AndrewV : > Thanks a lot. > I tried to create CustomIgniteBiPredicate, but inside the method "apply" > List list is always empty. > > *Exampl

Re: ScanQuery for List<...>

2019-01-28 Thread AndrewV
Thanks a lot. I tried to create CustomIgniteBiPredicate, but inside the method "apply" List list is always empty. *Example with an empty list in filter predicate:* public boolean apply(Integer key, List list) { // Here the list is always empty for (Foo item: list) { if (item.id == 2

Re: ScanQuery for List<...>

2019-01-25 Thread Karun Chand
Replace the 2 with searchKey On Fri, Jan 25, 2019, 12:12 PM Karun Chand Hey Andrew, > > I think this is what you are looking for - > > class Foo { > int id; > } > > class CustomIgniteBiPredicate implements IgniteBiPredicate List> { > int searchKey; > > public CustomIgniteBiPredicate(i

Re: ScanQuery for List<...>

2019-01-25 Thread Karun Chand
Hey Andrew, I think this is what you are looking for - class Foo { int id; } class CustomIgniteBiPredicate implements IgniteBiPredicate> { int searchKey; public CustomIgniteBiPredicate(int searchKey) { this.searchKey = searchKey; } public boolean apply(Integer key,