@Override public Long geoAdd(byte[] key, Map<byte[], Point> memberCoordinateMap) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (byte[] mapKey : memberCoordinateMap.keySet()) { redisGeoCoordinateMap.put(mapKey, JedisConverters.toGeoCoordinate(memberCoordinateMap.get(mapKey))); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Point point, byte[] member) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(point, "Point must not be null!"); Assert.notNull(member, "Member must not be null!"); try { return connection.getCluster().geoadd(key, point.getX(), point.getY(), member); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Iterable<GeoLocation<byte[]>> locations) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(locations, "Locations must not be null!"); Map<byte[], redis.clients.jedis.GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (GeoLocation<byte[]> location : locations) { redisGeoCoordinateMap.put(location.getName(), JedisConverters.toGeoCoordinate(location.getPoint())); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoadd(byte[] bytes, Map<byte[], GeoCoordinate> map) { return cluster.geoadd(bytes, map); }
public Long geoadd(byte[] key, double longitude, double latitude, byte[] member) { return jedisCluster.geoadd(key, longitude, latitude, member); }
public Long geoadd(String key, double longitude, double latitude, String member) { return jedisCluster.geoadd(key, longitude, latitude, member); }
@Override public Long geoadd(byte[] bytes, double v, double v1, byte[] bytes1) { return cluster.geoadd(bytes, v, v1, bytes1); }
public Long geoadd(String key, Map<String, GeoCoordinate> memberCoordinateMap) { return jedisCluster.geoadd(key, memberCoordinateMap); }
public Long geoadd(byte[] key, Map<byte[], GeoCoordinate> memberCoordinateMap) { return jedisCluster.geoadd(key, memberCoordinateMap); }
@Override public Long geoAdd(byte[] key, Map<byte[], Point> memberCoordinateMap) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (byte[] mapKey : memberCoordinateMap.keySet()) { redisGeoCoordinateMap.put(mapKey, JedisConverters.toGeoCoordinate(memberCoordinateMap.get(mapKey))); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Map<byte[], Point> memberCoordinateMap) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (byte[] mapKey : memberCoordinateMap.keySet()) { redisGeoCoordinateMap.put(mapKey, JedisConverters.toGeoCoordinate(memberCoordinateMap.get(mapKey))); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Point point, byte[] member) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(point, "Point must not be null!"); Assert.notNull(member, "Member must not be null!"); try { return connection.getCluster().geoadd(key, point.getX(), point.getY(), member); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Point point, byte[] member) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(point, "Point must not be null!"); Assert.notNull(member, "Member must not be null!"); try { return connection.getCluster().geoadd(key, point.getX(), point.getY(), member); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Iterable<GeoLocation<byte[]>> locations) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(locations, "Locations must not be null!"); Map<byte[], redis.clients.jedis.GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (GeoLocation<byte[]> location : locations) { redisGeoCoordinateMap.put(location.getName(), JedisConverters.toGeoCoordinate(location.getPoint())); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long geoAdd(byte[] key, Iterable<GeoLocation<byte[]>> locations) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(locations, "Locations must not be null!"); Map<byte[], redis.clients.jedis.GeoCoordinate> redisGeoCoordinateMap = new HashMap<>(); for (GeoLocation<byte[]> location : locations) { redisGeoCoordinateMap.put(location.getName(), JedisConverters.toGeoCoordinate(location.getPoint())); } try { return connection.getCluster().geoadd(key, redisGeoCoordinateMap); } catch (Exception ex) { throw convertJedisAccessException(ex); } }