@Override public Long geoAdd(String key, Map<String, Point> memberCoordinateMap) { Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (Entry<String, Point> entry : memberCoordinateMap.entrySet()) { byteMap.put(serialize(entry.getKey()), entry.getValue()); } return geoAdd(serialize(key), byteMap); }
@Override public Long geoAdd(String key, GeoLocation<String> location) { Assert.notNull(location, "Location must not be null!"); return geoAdd(key, location.getPoint(), location.getName()); }
@Override public Long geoAdd(String key, Point point, String member) { return geoAdd(serialize(key), point, serialize(member)); }
@Override public Long geoAdd(String key, Iterable<GeoLocation<String>> locations) { Assert.notNull(locations, "Locations must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (GeoLocation<String> location : locations) { byteMap.put(serialize(location.getName()), location.getPoint()); } return geoAdd(serialize(key), byteMap); }
@Override public Long geoAdd(String key, Map<String, Point> memberCoordinateMap) { Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (Entry<String, Point> entry : memberCoordinateMap.entrySet()) { byteMap.put(serialize(entry.getKey()), entry.getValue()); } return geoAdd(serialize(key), byteMap); }
@Override public Long geoAdd(String key, Map<String, Point> memberCoordinateMap) { Assert.notNull(memberCoordinateMap, "MemberCoordinateMap must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (Entry<String, Point> entry : memberCoordinateMap.entrySet()) { byteMap.put(serialize(entry.getKey()), entry.getValue()); } return geoAdd(serialize(key), byteMap); }
@Override public Long geoAdd(String key, GeoLocation<String> location) { Assert.notNull(location, "Location must not be null!"); return geoAdd(key, location.getPoint(), location.getName()); }
@Override public Long geoAdd(String key, GeoLocation<String> location) { Assert.notNull(location, "Location must not be null!"); return geoAdd(key, location.getPoint(), location.getName()); }
@Override public Long geoAdd(String key, Iterable<GeoLocation<String>> locations) { Assert.notNull(locations, "Locations must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (GeoLocation<String> location : locations) { byteMap.put(serialize(location.getName()), location.getPoint()); } return geoAdd(serialize(key), byteMap); }
@Override public Long geoAdd(String key, Point point, String member) { return geoAdd(serialize(key), point, serialize(member)); }
@Override public Long geoAdd(String key, Point point, String member) { return geoAdd(serialize(key), point, serialize(member)); }
@Override public Long geoAdd(String key, Iterable<GeoLocation<String>> locations) { Assert.notNull(locations, "Locations must not be null!"); Map<byte[], Point> byteMap = new HashMap<>(); for (GeoLocation<String> location : locations) { byteMap.put(serialize(location.getName()), location.getPoint()); } return geoAdd(serialize(key), byteMap); }