ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akurbanov <antkr....@gmail.com>
Subject Re: Loading Cache
Date Tue, 21 Aug 2018 20:22:29 GMT
Hi,

Call a method like this and pass closure that returns true for data entries
that match your criteria in apply() method:

cache.loadCache(new P2<Integer, String>() {
        @Override public boolean apply(Integer key, String val) {
        // Accept only even numbers.
        return key % 2 == 0;
    }
}, cnt);

Variable cnt is an number you may use to limit entry count, you may omit it.



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

Mime
View raw message