Lines Matching refs:field
65 int hashTypeGetFromZiplist(robj *o, robj *field, in hashTypeGetFromZiplist() argument
75 field = getDecodedObject(field); in hashTypeGetFromZiplist()
80 fptr = ziplistFind(fptr, field->ptr, sdslen(field->ptr), 1); in hashTypeGetFromZiplist()
88 decrRefCount(field); in hashTypeGetFromZiplist()
101 int hashTypeGetFromHashTable(robj *o, robj *field, robj **value) { in hashTypeGetFromHashTable() argument
106 de = dictFind(o->ptr, field); in hashTypeGetFromHashTable()
118 robj *hashTypeGetObject(robj *o, robj *field) { in hashTypeGetObject() argument
126 if (hashTypeGetFromZiplist(o, field, &vstr, &vlen, &vll) == 0) { in hashTypeGetObject()
136 if (hashTypeGetFromHashTable(o, field, &aux) == 0) { in hashTypeGetObject()
149 size_t hashTypeGetValueLength(robj *o, robj *field) { in hashTypeGetValueLength() argument
156 if (hashTypeGetFromZiplist(o, field, &vstr, &vlen, &vll) == 0) in hashTypeGetValueLength()
161 if (hashTypeGetFromHashTable(o, field, &aux) == 0) in hashTypeGetValueLength()
171 int hashTypeExists(robj *o, robj *field) { in hashTypeExists() argument
177 if (hashTypeGetFromZiplist(o, field, &vstr, &vlen, &vll) == 0) return 1; in hashTypeExists()
181 if (hashTypeGetFromHashTable(o, field, &aux) == 0) return 1; in hashTypeExists()
192 int hashTypeSet(robj *o, robj *field, robj *value) { in hashTypeSet() argument
198 field = getDecodedObject(field); in hashTypeSet()
204 fptr = ziplistFind(fptr, field->ptr, sdslen(field->ptr), 1); in hashTypeSet()
221 zl = ziplistPush(zl, field->ptr, sdslen(field->ptr), ZIPLIST_TAIL); in hashTypeSet()
225 decrRefCount(field); in hashTypeSet()
232 if (dictReplace(o->ptr, field, value)) { /* Insert */ in hashTypeSet()
233 incrRefCount(field); in hashTypeSet()
246 int hashTypeDelete(robj *o, robj *field) { in hashTypeDelete() argument
252 field = getDecodedObject(field); in hashTypeDelete()
257 fptr = ziplistFind(fptr, field->ptr, sdslen(field->ptr), 1); in hashTypeDelete()
266 decrRefCount(field); in hashTypeDelete()
269 if (dictDelete((dict*)o->ptr, field) == C_OK) { in hashTypeDelete()
447 robj *field, *value; in hashTypeConvertZiplist() local
449 field = hashTypeCurrentObject(hi, OBJ_HASH_KEY); in hashTypeConvertZiplist()
450 field = tryObjectEncoding(field); in hashTypeConvertZiplist()
453 ret = dictAdd(dict, field, value); in hashTypeConvertZiplist()
608 static void addHashFieldToReply(client *c, robj *o, robj *field) { in addHashFieldToReply() argument
621 ret = hashTypeGetFromZiplist(o, field, &vstr, &vlen, &vll); in addHashFieldToReply()
635 ret = hashTypeGetFromHashTable(o, field, &value); in addHashFieldToReply()