Merge branch 'hashset' of git://github.com/pietern/jedis into pietern-hashset
This commit is contained in:
@@ -182,7 +182,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
public Set<byte[]> keys(final byte[] pattern) {
|
public Set<byte[]> keys(final byte[] pattern) {
|
||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.keys(pattern);
|
client.keys(pattern);
|
||||||
final HashSet<byte[]> keySet = new LinkedHashSet<byte[]>(client
|
final HashSet<byte[]> keySet = new HashSet<byte[]>(client
|
||||||
.getBinaryMultiBulkReply());
|
.getBinaryMultiBulkReply());
|
||||||
return keySet;
|
return keySet;
|
||||||
}
|
}
|
||||||
@@ -835,7 +835,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.hkeys(key);
|
client.hkeys(key);
|
||||||
final List<byte[]> lresult = client.getBinaryMultiBulkReply();
|
final List<byte[]> lresult = client.getBinaryMultiBulkReply();
|
||||||
return new LinkedHashSet<byte[]>(lresult);
|
return new HashSet<byte[]>(lresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1186,7 +1186,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.smembers(key);
|
client.smembers(key);
|
||||||
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
||||||
return new LinkedHashSet<byte[]>(members);
|
return new HashSet<byte[]>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1310,7 +1310,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.sinter(keys);
|
client.sinter(keys);
|
||||||
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
||||||
return new LinkedHashSet<byte[]>(members);
|
return new HashSet<byte[]>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1350,7 +1350,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.sunion(keys);
|
client.sunion(keys);
|
||||||
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
||||||
return new LinkedHashSet<byte[]>(members);
|
return new HashSet<byte[]>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1398,7 +1398,7 @@ public class BinaryJedis implements BinaryJedisCommands {
|
|||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.sdiff(keys);
|
client.sdiff(keys);
|
||||||
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
final List<byte[]> members = client.getBinaryMultiBulkReply();
|
||||||
return new LinkedHashSet<byte[]>(members);
|
return new HashSet<byte[]>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1182,7 +1182,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
|
|||||||
runChecks();
|
runChecks();
|
||||||
client.smembers(key);
|
client.smembers(key);
|
||||||
final List<String> members = client.getMultiBulkReply();
|
final List<String> members = client.getMultiBulkReply();
|
||||||
return new LinkedHashSet<String>(members);
|
return new HashSet<String>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1306,7 +1306,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
|
|||||||
runChecks();
|
runChecks();
|
||||||
client.sinter(keys);
|
client.sinter(keys);
|
||||||
final List<String> members = client.getMultiBulkReply();
|
final List<String> members = client.getMultiBulkReply();
|
||||||
return new LinkedHashSet<String>(members);
|
return new HashSet<String>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1346,7 +1346,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
|
|||||||
runChecks();
|
runChecks();
|
||||||
client.sunion(keys);
|
client.sunion(keys);
|
||||||
final List<String> members = client.getMultiBulkReply();
|
final List<String> members = client.getMultiBulkReply();
|
||||||
return new LinkedHashSet<String>(members);
|
return new HashSet<String>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1394,7 +1394,7 @@ public class Jedis extends BinaryJedis implements JedisCommands {
|
|||||||
runChecks();
|
runChecks();
|
||||||
client.sdiff(keys);
|
client.sdiff(keys);
|
||||||
final List<String> members = client.getMultiBulkReply();
|
final List<String> members = client.getMultiBulkReply();
|
||||||
return new LinkedHashSet<String>(members);
|
return new HashSet<String>(members);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user