@Test @Ignore public void hash02_testHexists() { assertEquals(shardedJedis.hexists("hash:set", "hash4"), true); assertEquals(shardedJedis.hexists("hash:set", "hash2"), true); assertEquals(shardedJedis.hexists("hash:set", "hash6"), false); }
@Override public Boolean hexists(String key, String field) { Boolean result = false; for (Jedis jedis : allShards) { result = jedis.hexists(key, field); if (result == true) { break; } } return result; }
ValueShardedJedis extends Sharded<Jedis, JedisShardInfo> implements JedisCommands { @Override public Boolean hexists(String key, String field) { Boolean result = false; for (Jedis jedis : allShards) { result = jedis.hexists(key, field); if (result == true) { break; } } return result; } }
ValueShardedJedis extends Sharded<Jedis, JedisShardInfo> implements JedisCommands { @Override public Boolean hexists(String key, String field) { Boolean result = false; for (Jedis jedis : allShards) { result = jedis.hexists(key, field); if (result == true) { break; } } return result; } ValueShardedJedis(List<JedisShardInfo> shards);  ValueShardedJedis(List<JedisShardInfo> shards, Hashing algo); }
ValueShardedJedis extends Sharded<Jedis, JedisShardInfo> implements JedisCommands { @Override public Boolean hexists(String key, String field) { Boolean result = false; for (Jedis jedis : allShards) { result = jedis.hexists(key, field); if (result == true) { break; } } return result; } ValueShardedJedis(List<JedisShardInfo> shards);  ValueShardedJedis(List<JedisShardInfo> shards, Hashing algo); void close(); @Override Long append(String key, String value); @Override Long decr(String key); @Override Long decrBy(String key, long integer); Long del(String... keys); void eval(String script, String[] keys, String... members); @Override Boolean exists(String key); @Override Long expire(String key, int seconds); @Override Long expireAt(String key, long unixTime); @Override String get(String key); @Override Boolean getbit(String key, long offset); @Override String getrange(String key, long startOffset, long endOffset); @Override String getSet(String key, String value); @Override Long hdel(String key, String... field); @Override Boolean hexists(String key, String field); @Override String hget(String key, String field); @Override Map<String, String> hgetAll(String key); @Override Long hincrBy(String key, String field, long value); @SuppressWarnings("null") @Override Set<String> hkeys(String key); @Override Long hlen(String key); @Override List<String> hmget(String key, String... fields); @Override String hmset(String key, Map<String, String> hash); @Override Long hset(String key, String field, String value); @Override Long hsetnx(String key, String field, String value); @Override List<String> hvals(String key); @Override Long incr(String key); @Override Long incrBy(String key, long integer); @Override String lindex(String key, long index); @Override Long linsert(String key, LIST_POSITION where, String pivot, String value); @Override Long llen(String key); @Override String lpop(String key); String lpop(String key, List<Jedis> jedises); @Override Long lpush(String key, String... members); @Override List<String> lrange(String key, long start, long end); @Override Long lrem(String key, long count, String value); @Override String lset(String key, long index, String value); @Override String ltrim(String key, long start, long end); @Override String rpop(String key); @Override Long rpush(String key, String... members); @Override Long sadd(String key, String... members); @Override Long scard(String key); @Override String set(String key, String value); @Override Boolean setbit(String key, long offset, boolean value); @Override String setex(String key, int seconds, String value); @Override Long setnx(String key, String value); @Override Long setrange(String key, long offset, String value); @Override Boolean sismember(String key, String member); @Override Set<String> smembers(String key); @Override List<String> sort(String key); @Override List<String> sort(String key, SortingParams sortingParameters); @Override String spop(String key); @Override String srandmember(String key); @Override Long srem(String key, String... members); @Override String substr(String key, int start, int end); @Override Long ttl(String key); @Override String type(String key); @Override Long zadd(String key, double score, String member); @Override Long zcard(String key); @Override Long zcount(String key, double min, double max); @Override Long zcount(String key, String min, String max); @Override Double zincrby(String key, double score, String member); @Override Set<String> zrange(String key, long start, long end); @Override Set<String> zrangeByScore(String key, double min, double max); @Override Set<String> zrangeByScore(String key, double min, double max, int offset, int count); @Override Set<String> zrangeByScore(String key, String min, String max); @Override Set<String> zrangeByScore(String key, String min, String max, int offset, int count); @Override Set<Tuple> zrangeByScoreWithScores(String key, double min, double max); @Override Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count); @Override Set<Tuple> zrangeByScoreWithScores(String key, String min, String max); @Override Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count); @Override Set<Tuple> zrangeWithScores(String key, long start, long end); @Override Long zrank(String key, String member); @Override Long zrem(String key, String... member); @Override Long zremrangeByRank(String key, long start, long end); @Override Long zremrangeByScore(String key, double start, double end); @Override Long zremrangeByScore(String key, String start, String end); @Override Set<String> zrevrange(String key, long start, long end); @Override Set<String> zrevrangeByScore(String key, double max, double min); @Override Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count); @Override Set<String> zrevrangeByScore(String key, String max, String min); @Override Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count); @Override Set<Tuple> zrevrangeWithScores(String key, long start, long end); @Override Long zrevrank(String key, String member); @Override Double zscore(String key, String member); @Override Long persist(String key); @Override Boolean setbit(String key, long offset, String value); @Override Long strlen(String key); @Override Long zadd(String key, Map<String, Double> scoreMembers); @Override Long lpushx(String key, String... string); @Override Long rpushx(String key, String... string); @Override List<String> blpop(String arg); @Override List<String> brpop(String arg); @Override Long del(String key); @Override String echo(String string); @Override Long move(String key, int dbIndex); @Override Long bitcount(String key); @Override Long bitcount(String key, long start, long end); @Override ScanResult<Entry<String, String>> hscan(String key, int cursor); @Override ScanResult<String> sscan(String key, int cursor); @Override ScanResult<Tuple> zscan(String key, int cursor); @Override ScanResult<Entry<String, String>> hscan(String key, String cursor); @Override ScanResult<String> sscan(String key, String cursor); @Override ScanResult<Tuple> zscan(String key, String cursor); @Override String set(String key, String value, String nxxx, String expx, long time); @Override Long pfadd(String key, String... elements); @Override long pfcount(String key); }
ValueShardedJedis extends Sharded<Jedis, JedisShardInfo> implements JedisCommands { @Override public Boolean hexists(String key, String field) { Boolean result = false; for (Jedis jedis : allShards) { result = jedis.hexists(key, field); if (result == true) { break; } } return result; } ValueShardedJedis(List<JedisShardInfo> shards);  ValueShardedJedis(List<JedisShardInfo> shards, Hashing algo); void close(); @Override Long append(String key, String value); @Override Long decr(String key); @Override Long decrBy(String key, long integer); Long del(String... keys); void eval(String script, String[] keys, String... members); @Override Boolean exists(String key); @Override Long expire(String key, int seconds); @Override Long expireAt(String key, long unixTime); @Override String get(String key); @Override Boolean getbit(String key, long offset); @Override String getrange(String key, long startOffset, long endOffset); @Override String getSet(String key, String value); @Override Long hdel(String key, String... field); @Override Boolean hexists(String key, String field); @Override String hget(String key, String field); @Override Map<String, String> hgetAll(String key); @Override Long hincrBy(String key, String field, long value); @SuppressWarnings("null") @Override Set<String> hkeys(String key); @Override Long hlen(String key); @Override List<String> hmget(String key, String... fields); @Override String hmset(String key, Map<String, String> hash); @Override Long hset(String key, String field, String value); @Override Long hsetnx(String key, String field, String value); @Override List<String> hvals(String key); @Override Long incr(String key); @Override Long incrBy(String key, long integer); @Override String lindex(String key, long index); @Override Long linsert(String key, LIST_POSITION where, String pivot, String value); @Override Long llen(String key); @Override String lpop(String key); String lpop(String key, List<Jedis> jedises); @Override Long lpush(String key, String... members); @Override List<String> lrange(String key, long start, long end); @Override Long lrem(String key, long count, String value); @Override String lset(String key, long index, String value); @Override String ltrim(String key, long start, long end); @Override String rpop(String key); @Override Long rpush(String key, String... members); @Override Long sadd(String key, String... members); @Override Long scard(String key); @Override String set(String key, String value); @Override Boolean setbit(String key, long offset, boolean value); @Override String setex(String key, int seconds, String value); @Override Long setnx(String key, String value); @Override Long setrange(String key, long offset, String value); @Override Boolean sismember(String key, String member); @Override Set<String> smembers(String key); @Override List<String> sort(String key); @Override List<String> sort(String key, SortingParams sortingParameters); @Override String spop(String key); @Override String srandmember(String key); @Override Long srem(String key, String... members); @Override String substr(String key, int start, int end); @Override Long ttl(String key); @Override String type(String key); @Override Long zadd(String key, double score, String member); @Override Long zcard(String key); @Override Long zcount(String key, double min, double max); @Override Long zcount(String key, String min, String max); @Override Double zincrby(String key, double score, String member); @Override Set<String> zrange(String key, long start, long end); @Override Set<String> zrangeByScore(String key, double min, double max); @Override Set<String> zrangeByScore(String key, double min, double max, int offset, int count); @Override Set<String> zrangeByScore(String key, String min, String max); @Override Set<String> zrangeByScore(String key, String min, String max, int offset, int count); @Override Set<Tuple> zrangeByScoreWithScores(String key, double min, double max); @Override Set<Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count); @Override Set<Tuple> zrangeByScoreWithScores(String key, String min, String max); @Override Set<Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count); @Override Set<Tuple> zrangeWithScores(String key, long start, long end); @Override Long zrank(String key, String member); @Override Long zrem(String key, String... member); @Override Long zremrangeByRank(String key, long start, long end); @Override Long zremrangeByScore(String key, double start, double end); @Override Long zremrangeByScore(String key, String start, String end); @Override Set<String> zrevrange(String key, long start, long end); @Override Set<String> zrevrangeByScore(String key, double max, double min); @Override Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count); @Override Set<String> zrevrangeByScore(String key, String max, String min); @Override Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min); @Override Set<Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count); @Override Set<Tuple> zrevrangeWithScores(String key, long start, long end); @Override Long zrevrank(String key, String member); @Override Double zscore(String key, String member); @Override Long persist(String key); @Override Boolean setbit(String key, long offset, String value); @Override Long strlen(String key); @Override Long zadd(String key, Map<String, Double> scoreMembers); @Override Long lpushx(String key, String... string); @Override Long rpushx(String key, String... string); @Override List<String> blpop(String arg); @Override List<String> brpop(String arg); @Override Long del(String key); @Override String echo(String string); @Override Long move(String key, int dbIndex); @Override Long bitcount(String key); @Override Long bitcount(String key, long start, long end); @Override ScanResult<Entry<String, String>> hscan(String key, int cursor); @Override ScanResult<String> sscan(String key, int cursor); @Override ScanResult<Tuple> zscan(String key, int cursor); @Override ScanResult<Entry<String, String>> hscan(String key, String cursor); @Override ScanResult<String> sscan(String key, String cursor); @Override ScanResult<Tuple> zscan(String key, String cursor); @Override String set(String key, String value, String nxxx, String expx, long time); @Override Long pfadd(String key, String... elements); @Override long pfcount(String key);  }