Examples of zinterstore()


Examples of redis.clients.jedis.Pipeline.zinterstore()

                for (ConjunctiveFormula conjunctiveFormula : dnf) {
                    String[] keys = conjunctiveFormula.getLiterals()
                            .toArray(
                                    new String[conjunctiveFormula.getLiterals()
                                            .size()]);
                    pipeline.zinterstore(tmpkey, zparams, keys);
                    pipeline.zunionstore(rkey, zparams, tmpkey, rkey);
                }
                if (order.equals(Order.ASC)) {
                    pipeline.zrange(rkey, start, end);
                } else {
View Full Code Here

Examples of redis.clients.jedis.Transaction.zinterstore()

            semname.getBytes(),
            "-inf".getBytes(),
            String.valueOf(now - timeout).getBytes());
        ZParams params = new ZParams();
        params.weights(1, 0);
        trans.zinterstore(czset, params, czset, semname);
        trans.incr(ctr);
        List<Object> results = trans.exec();
        int counter = ((Long)results.get(results.size() - 1)).intValue();

        trans = conn.multi();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.