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:
samhendley
2013-01-09 23:48:23 -05:00
21 changed files with 262 additions and 9 deletions

View File

@@ -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) {