Lines Matching refs:key
32 "sort key. If there is no main sort key then all records are in one "
33 "category. If the \bmin\b key sorts less than the current category "
34 "minimum or if the \bmax\b key sorts greater than the category maximum "
39 "key \ak1\a and the second using sort key \ak2\a.]"
47 "[m:min?Mimima \bsort\b(1) key specification.]:[sort-key]"
48 "[M:max?Maxima \bsort\b(1) key specification.]:[sort-key]"
79 Data_t key;
106 Data_t key;
138 message((-4, "gleancmp a:%d:%-.*s: b:%d:%-.*s:", x->key.len, x->key.len, x->key.data, y->key.len, y->key.len, y->key.data));
139 if (x->key.len < y->key.len)
141 if (x->key.len > y->key.len)
143 return memcmp(x->key.data, y->key.data, x->key.len);
186 x.key.data = r->key;
187 x.key.len = r->keylen;
196 p->key.len = r->keylen;
197 p->key.data = (char*)(p + 1) + (state->fields - 1) * sizeof(Data_t);
198 memcpy(p->key.data, r->key, r->keylen);
206 message((-2, "glean record p=%p %I*u/%I*u key='%-.*s' r:%d:%-.*s: '%-.*s'", p, sizeof(p->count), p->count, sizeof(state->total), state->total, r->keylen, r->key, x.key.len, x.key.len, x.key.data, r->datalen && r->data[r->datalen - 1] == '\n' ? r->datalen - 1 : r->datalen, r->data));
215 if (save(state->vm, &state->key, 0, k))
217 if ((k = (*f->lim->disc->defkeyf)(NiL, r->data, r->datalen, state->key.data, state->key.size, f->lim->disc)) < 0)
219 t.len = state->key.len = k;
220 t.data = state->key.data;
224 t.data = r->data + f->lim->disc->key;
226 k += r->datalen - f->lim->disc->key;
244 t = state->key;
245 state->key = p->lim[f->index];
274 rs_disc(Rskey_t* key, const char* options)
284 key->type &= ~RS_DATA;
291 if ((key->keydisc->flags & RSKEY_KEYS) && !(state->categories = dtnew(vm, &state->dtdisc, Dtoset)))
316 strcpy((char*)f->lim->tab, (char*)key->tab);
317 f->lim->type = key->type;