Lines Matching refs:zobj

113 int longLatFromMember(robj *zobj, robj *member, double *xy) {  in longLatFromMember()  argument
116 if (zsetScore(zobj, member->ptr, &score) == C_ERR) return C_ERR; in longLatFromMember()
225 int geoGetPointsInRange(robj *zobj, double min, double max, double lon, double lat, double radius, … in geoGetPointsInRange() argument
232 if (zobj->encoding == OBJ_ENCODING_ZIPLIST) { in geoGetPointsInRange()
233 unsigned char *zl = zobj->ptr; in geoGetPointsInRange()
261 } else if (zobj->encoding == OBJ_ENCODING_SKIPLIST) { in geoGetPointsInRange()
262 zset *zs = zobj->ptr; in geoGetPointsInRange()
318 int membersOfGeoHashBox(robj *zobj, GeoHashBits hash, geoArray *ga, double lon, double lat, double … in membersOfGeoHashBox() argument
322 return geoGetPointsInRange(zobj, min, max, lon, lat, radius, ga); in membersOfGeoHashBox()
326 int membersOfAllNeighbors(robj *zobj, GeoHashRadius n, double lon, double lat, double radius, geoAr… in membersOfAllNeighbors() argument
377 count += membersOfGeoHashBox(zobj, neighbors[i], ga, lon, lat, radius); in membersOfAllNeighbors()
468 robj *zobj = NULL; in georadiusGeneric() local
469 if ((zobj = lookupKeyReadOrReply(c, key, shared.emptymultibulk)) == NULL || in georadiusGeneric()
470 checkType(c, zobj, OBJ_ZSET)) { in georadiusGeneric()
484 if (longLatFromMember(zobj, member, xy) == C_ERR) { in georadiusGeneric()
565 membersOfAllNeighbors(zobj, georadius, xy[0], xy[1], radius_meters, ga); in georadiusGeneric()
635 robj *zobj; in georadiusGeneric() local
641 zobj = createZsetObject(); in georadiusGeneric()
642 zs = zobj->ptr; in georadiusGeneric()
659 zsetConvertToZiplistIfNeeded(zobj,maxelelen); in georadiusGeneric()
660 setKey(c->db,storekey,zobj); in georadiusGeneric()
661 decrRefCount(zobj); in georadiusGeneric()
704 robj *zobj = lookupKeyRead(c->db, c->argv[1]); in geohashCommand() local
705 if (zobj && checkType(c, zobj, OBJ_ZSET)) return; in geohashCommand()
712 if (!zobj || zsetScore(zobj, c->argv[j]->ptr, &score) == C_ERR) { in geohashCommand()
757 robj *zobj = lookupKeyRead(c->db, c->argv[1]); in geoposCommand() local
758 if (zobj && checkType(c, zobj, OBJ_ZSET)) return; in geoposCommand()
765 if (!zobj || zsetScore(zobj, c->argv[j]->ptr, &score) == C_ERR) { in geoposCommand()
799 robj *zobj = NULL; in geodistCommand() local
800 if ((zobj = lookupKeyReadOrReply(c, c->argv[1], shared.nullbulk)) in geodistCommand()
801 == NULL || checkType(c, zobj, OBJ_ZSET)) return; in geodistCommand()
805 if (zsetScore(zobj, c->argv[2]->ptr, &score1) == C_ERR || in geodistCommand()
806 zsetScore(zobj, c->argv[3]->ptr, &score2) == C_ERR) in geodistCommand()