You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by joseheitor <jo...@heitorprojects.com> on 2018/11/23 09:43:58 UTC

Re: Passing parameters to IgniteBiPredicate

Hi have the same question... did you ever find a solution?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: [RESOLVED] Passing parameters to IgniteBiPredicate

Posted by joseheitor <jo...@heitorprojects.com>.
Please ignore my previous post - it is working correctly:

        String date = "2018-10-21";
        ScanQuery<Integer, Transaction> filter = new ScanQuery<>(
            new IgniteBiPredicate<Integer, Transaction>() {
                @Override
                public boolean apply(Integer key, Transaction trans) {
                      return trans.getDate().equals(date);
                }
            }
        );
        List result = database.getCache().query(filter).getAll();




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/