Added bitcount to standard interfaces and bitop to MultiKey interfaces (since it is non-shardable)
Merge branch 'impl-bitcount-and-bitop' of git://github.com/koron/jedis Conflicts: src/main/java/redis/clients/jedis/JedisCommands.java
This commit is contained in:
@@ -1282,6 +1282,34 @@ public class ShardedJedisPipeline extends Queable implements BinaryRedisPipeline
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<Long> bitcount(String key) {
|
||||
Client c = getClient(key);
|
||||
c.bitcount(key);
|
||||
results.add(new FutureResult(c));
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<Long> bitcount(String key, long start, long end) {
|
||||
Client c = getClient(key);
|
||||
c.bitcount(key, start, end);
|
||||
results.add(new FutureResult(c));
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<Long> bitcount(byte[] key) {
|
||||
Client c = getClient(key);
|
||||
c.bitcount(key);
|
||||
results.add(new FutureResult(c));
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<Long> bitcount(byte[] key, long start, long end) {
|
||||
Client c = getClient(key);
|
||||
c.bitcount(key, start, end);
|
||||
results.add(new FutureResult(c));
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public List<Object> getResults() {
|
||||
List<Object> r = new ArrayList<Object>();
|
||||
for (FutureResult fr : results) {
|
||||
|
||||
Reference in New Issue
Block a user