Searched refs:jqval (Results 1 – 6 of 6) sorted by relevance
/third_party/ejdb/src/jbi/ |
D | jbi_util.c | 83 void jbi_jqval_fill_ikey(JBIDX idx, const JQVAL *jqval, IWKV_val *ikey, char numbuf[static JBNUMBUF… in jbi_jqval_fill_ikey() argument 88 jqval_type_t jqvt = jqval->type; in jbi_jqval_fill_ikey() 94 ikey->size = strlen(jqval->vstr); in jbi_jqval_fill_ikey() 95 ikey->data = (void*) jqval->vstr; in jbi_jqval_fill_ikey() 98 ikey->size = (size_t) iwitoa(jqval->vi64, numbuf, JBNUMBUF_SIZE); in jbi_jqval_fill_ikey() 101 if (jqval->vbool) { in jbi_jqval_fill_ikey() 110 jbi_ftoa(jqval->vf64, numbuf, &ikey->size); in jbi_jqval_fill_ikey() 120 *llv = jqval->vi64; in jbi_jqval_fill_ikey() 123 *llv = (int64_t) jqval->vf64; in jbi_jqval_fill_ikey() 126 *llv = jqval->vbool; in jbi_jqval_fill_ikey() [all …]
|
D | jbi_uniq_scanner.c | 5 static iwrc _jbi_consume_eq(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_eq() argument 14 jbi_jqval_fill_ikey(midx->idx, jqval, &key, numbuf); in _jbi_consume_eq() 31 static iwrc _jbi_consume_in_node(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_in_node() argument 42 JBL_NODE nv = jqval->vnode->child; in _jbi_consume_in_node() 79 static iwrc _jbi_consume_scan(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_scan() argument 90 jbi_jqval_fill_ikey(idx, jqval, &key, numbuf); in _jbi_consume_scan() 217 JQVAL *jqval = jql_unit_to_jqval(qp->aux, midx->expr1->right, &rc); in jbi_uniq_scanner() local 221 return _jbi_consume_eq(ctx, jqval, consumer); in jbi_uniq_scanner() 223 if (jqval->type == JQVAL_JBLNODE) { in jbi_uniq_scanner() 224 return _jbi_consume_in_node(ctx, jqval, consumer); in jbi_uniq_scanner() [all …]
|
D | jbi_dup_scanner.c | 3 static iwrc _jbi_consume_eq(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_eq() argument 16 jbi_jqval_fill_ikey(idx, jqval, &key, numbuf); in _jbi_consume_eq() 64 static iwrc _jbi_consume_in_node(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_in_node() argument 77 JBL_NODE nv = jqval->vnode->child; in _jbi_consume_in_node() 93 for (i = 0, nv = jqval->vnode->child; nv; nv = nv->next) { in _jbi_consume_in_node() 143 static iwrc _jbi_consume_scan(struct _JBEXEC *ctx, JQVAL *jqval, JB_SCAN_CONSUMER consumer) { in _jbi_consume_scan() argument 154 jbi_jqval_fill_ikey(idx, jqval, &key, numbuf); in _jbi_consume_scan() 277 JQVAL *jqval = jql_unit_to_jqval(qp->aux, midx->expr1->right, &rc); in jbi_dup_scanner() local 281 return _jbi_consume_eq(ctx, jqval, consumer); in jbi_dup_scanner() 283 if (jqval->type == JQVAL_JBLNODE) { in jbi_dup_scanner() [all …]
|
/third_party/ejdb/src/jql/ |
D | jql_internal.h | 52 bool jql_jqval_as_int(JQVAL *jqval, int64_t *out);
|
D | jql.c | 1112 bool jql_jqval_as_int(JQVAL *jqval, int64_t *out) { in jql_jqval_as_int() argument 1113 switch (jqval->type) { in jql_jqval_as_int() 1115 *out = jqval->vi64; in jql_jqval_as_int() 1118 *out = iwatoi(jqval->vstr); in jql_jqval_as_int() 1121 *out = jqval->vf64; in jql_jqval_as_int() 1124 *out = jqval->vbool ? 1 : 0; in jql_jqval_as_int() 1127 JBL_NODE n = jqval->vnode; in jql_jqval_as_int() 1133 *out = iwatoi(jqval->vstr); in jql_jqval_as_int() 1585 JQVAL jqval; in _jql_proj_join_matched() local 1592 jql_node_to_jqval(n, &jqval); in _jql_proj_join_matched() [all …]
|
/third_party/ejdb/src/ |
D | ejdb2_internal.h | 209 void jbi_jqval_fill_ikey(JBIDX idx, const JQVAL *jqval, IWKV_val *ikey, char numbuf[static JBNUMBUF…
|