@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); try { return JedisConverters.geoCoordinateToPointConverter().convert(connection.getCluster().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); ListConverter<GeoCoordinate, Point> converter = JedisConverters.geoCoordinateToPointConverter(); try { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().geopos(key, members), converter)); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().geopos(key, members), converter)); return null; } return converter.convert(connection.getJedis().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); try { return JedisConverters.geoCoordinateToPointConverter().convert(connection.getCluster().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); try { return JedisConverters.geoCoordinateToPointConverter().convert(connection.getCluster().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); ListConverter<GeoCoordinate, Point> converter = JedisConverters.geoCoordinateToPointConverter(); try { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().geopos(key, members), converter)); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().geopos(key, members), converter)); return null; } return converter.convert(connection.getJedis().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<Point> geoPos(byte[] key, byte[]... members) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(members, "Members must not be null!"); Assert.noNullElements(members, "Members must not contain null!"); ListConverter<GeoCoordinate, Point> converter = JedisConverters.geoCoordinateToPointConverter(); try { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().geopos(key, members), converter)); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().geopos(key, members), converter)); return null; } return converter.convert(connection.getJedis().geopos(key, members)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }