Lines Matching refs:outbuf

35 indent(grn_ctx *ctx, grn_obj *outbuf, size_t level)  in indent()  argument
39 GRN_TEXT_PUTS(ctx, outbuf, " "); in indent()
44 json_array_open(grn_ctx *ctx, grn_obj *outbuf, size_t *indent_level) in json_array_open() argument
46 GRN_TEXT_PUTC(ctx, outbuf, '['); in json_array_open()
48 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_array_open()
50 indent(ctx, outbuf, *indent_level); in json_array_open()
55 json_array_close(grn_ctx *ctx, grn_obj *outbuf, size_t *indent_level) in json_array_close() argument
58 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_array_close()
60 indent(ctx, outbuf, *indent_level); in json_array_close()
62 GRN_TEXT_PUTC(ctx, outbuf, ']'); in json_array_close()
66 json_element_end(grn_ctx *ctx, grn_obj *outbuf, size_t indent_level) in json_element_end() argument
68 GRN_TEXT_PUTC(ctx, outbuf, ','); in json_element_end()
70 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_element_end()
71 indent(ctx, outbuf, indent_level); in json_element_end()
76 json_map_open(grn_ctx *ctx, grn_obj *outbuf, size_t *indent_level) in json_map_open() argument
78 GRN_TEXT_PUTC(ctx, outbuf, '{'); in json_map_open()
80 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_map_open()
82 indent(ctx, outbuf, *indent_level); in json_map_open()
87 json_map_close(grn_ctx *ctx, grn_obj *outbuf, size_t *indent_level) in json_map_close() argument
90 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_map_close()
92 indent(ctx, outbuf, *indent_level); in json_map_close()
94 GRN_TEXT_PUTC(ctx, outbuf, '}'); in json_map_close()
98 json_key_end(grn_ctx *ctx, grn_obj *outbuf) in json_key_end() argument
100 GRN_TEXT_PUTC(ctx, outbuf, ':'); in json_key_end()
102 GRN_TEXT_PUTC(ctx, outbuf, ' '); in json_key_end()
107 json_key(grn_ctx *ctx, grn_obj *outbuf, const char *key) in json_key() argument
109 grn_text_esc(ctx, outbuf, key, strlen(key)); in json_key()
110 json_key_end(ctx, outbuf); in json_key()
114 json_value_end(grn_ctx *ctx, grn_obj *outbuf, size_t indent_level) in json_value_end() argument
116 GRN_TEXT_PUTC(ctx, outbuf, ','); in json_value_end()
118 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in json_value_end()
119 indent(ctx, outbuf, indent_level); in json_value_end()
124 put_delimiter(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type) in put_delimiter() argument
131 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in put_delimiter()
132 indent(ctx, outbuf, DEPTH + 1); in put_delimiter()
137 GRN_TEXT_PUTC(ctx, outbuf, ':'); in put_delimiter()
139 GRN_TEXT_PUTC(ctx, outbuf, ' '); in put_delimiter()
142 json_element_end(ctx, outbuf, DEPTH + 1); in put_delimiter()
148 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in put_delimiter()
153 GRN_TEXT_PUTC(ctx, outbuf, ((level & 3) == 3) ? '\t' : '\n'); in put_delimiter()
155 GRN_TEXT_PUTC(ctx, outbuf, '\t'); in put_delimiter()
168 grn_output_array_open(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_array_open() argument
171 put_delimiter(ctx, outbuf, output_type); in grn_output_array_open()
174 GRN_TEXT_PUTC(ctx, outbuf, '['); in grn_output_array_open()
177 GRN_TEXT_PUTC(ctx, outbuf, '<'); in grn_output_array_open()
178 GRN_TEXT_PUTS(ctx, outbuf, name); in grn_output_array_open()
179 GRN_TEXT_PUTC(ctx, outbuf, '>'); in grn_output_array_open()
186 if (DEPTH > 2) { GRN_TEXT_PUTS(ctx, outbuf, "[\t"); } in grn_output_array_open()
208 grn_output_array_close(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type) in grn_output_array_close() argument
213 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in grn_output_array_close()
214 indent(ctx, outbuf, DEPTH); in grn_output_array_close()
216 GRN_TEXT_PUTC(ctx, outbuf, ']'); in grn_output_array_close()
220 if (CURR_LEVEL >= 2) { GRN_TEXT_PUTC(ctx, outbuf, '\t'); } in grn_output_array_close()
221 GRN_TEXT_PUTC(ctx, outbuf, ']'); in grn_output_array_close()
231 GRN_TEXT_PUTS(ctx, outbuf, "</"); in grn_output_array_close()
232 GRN_TEXT_PUT(ctx, outbuf, name, name_len); in grn_output_array_close()
233 GRN_TEXT_PUTC(ctx, outbuf, '>'); in grn_output_array_close()
249 grn_output_map_open(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_map_open() argument
252 put_delimiter(ctx, outbuf, output_type); in grn_output_map_open()
255 GRN_TEXT_PUTS(ctx, outbuf, "{"); in grn_output_map_open()
258 GRN_TEXT_PUTC(ctx, outbuf, '<'); in grn_output_map_open()
259 GRN_TEXT_PUTS(ctx, outbuf, name); in grn_output_map_open()
260 GRN_TEXT_PUTC(ctx, outbuf, '>'); in grn_output_map_open()
266 if (DEPTH > 2) { GRN_TEXT_PUTS(ctx, outbuf, "{\t"); } in grn_output_map_open()
288 grn_output_map_close(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type) in grn_output_map_close() argument
293 GRN_TEXT_PUTC(ctx, outbuf, '\n'); in grn_output_map_close()
294 indent(ctx, outbuf, DEPTH); in grn_output_map_close()
296 GRN_TEXT_PUTS(ctx, outbuf, "}"); in grn_output_map_close()
300 if (CURR_LEVEL >= 2) { GRN_TEXT_PUTC(ctx, outbuf, '\t'); } in grn_output_map_close()
301 GRN_TEXT_PUTC(ctx, outbuf, '}'); in grn_output_map_close()
311 GRN_TEXT_PUTS(ctx, outbuf, "</"); in grn_output_map_close()
312 GRN_TEXT_PUT(ctx, outbuf, name, name_len); in grn_output_map_close()
313 GRN_TEXT_PUTC(ctx, outbuf, '>'); in grn_output_map_close()
329 grn_output_int32(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, int value) in grn_output_int32() argument
331 put_delimiter(ctx, outbuf, output_type); in grn_output_int32()
334 grn_text_itoa(ctx, outbuf, value); in grn_output_int32()
337 grn_text_itoa(ctx, outbuf, value); in grn_output_int32()
340 GRN_TEXT_PUTS(ctx, outbuf, "<INT>"); in grn_output_int32()
341 grn_text_itoa(ctx, outbuf, value); in grn_output_int32()
342 GRN_TEXT_PUTS(ctx, outbuf, "</INT>"); in grn_output_int32()
350 grn_text_itoa(ctx, outbuf, value); in grn_output_int32()
359 grn_output_int64(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, int64_t value) in grn_output_int64() argument
361 put_delimiter(ctx, outbuf, output_type); in grn_output_int64()
364 grn_text_lltoa(ctx, outbuf, value); in grn_output_int64()
367 grn_text_lltoa(ctx, outbuf, value); in grn_output_int64()
370 GRN_TEXT_PUTS(ctx, outbuf, "<INT>"); in grn_output_int64()
371 grn_text_lltoa(ctx, outbuf, value); in grn_output_int64()
372 GRN_TEXT_PUTS(ctx, outbuf, "</INT>"); in grn_output_int64()
380 grn_text_lltoa(ctx, outbuf, value); in grn_output_int64()
389 grn_output_uint64(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, uint64_t value) in grn_output_uint64() argument
391 put_delimiter(ctx, outbuf, output_type); in grn_output_uint64()
394 grn_text_ulltoa(ctx, outbuf, value); in grn_output_uint64()
397 grn_text_ulltoa(ctx, outbuf, value); in grn_output_uint64()
400 GRN_TEXT_PUTS(ctx, outbuf, "<INT>"); in grn_output_uint64()
401 grn_text_ulltoa(ctx, outbuf, value); in grn_output_uint64()
402 GRN_TEXT_PUTS(ctx, outbuf, "</INT>"); in grn_output_uint64()
410 grn_text_ulltoa(ctx, outbuf, value); in grn_output_uint64()
419 grn_output_float(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, double value) in grn_output_float() argument
421 put_delimiter(ctx, outbuf, output_type); in grn_output_float()
424 grn_text_ftoa(ctx, outbuf, value); in grn_output_float()
427 grn_text_ftoa(ctx, outbuf, value); in grn_output_float()
430 GRN_TEXT_PUTS(ctx, outbuf, "<FLOAT>"); in grn_output_float()
431 grn_text_ftoa(ctx, outbuf, value); in grn_output_float()
432 GRN_TEXT_PUTS(ctx, outbuf, "</FLOAT>"); in grn_output_float()
440 grn_text_ftoa(ctx, outbuf, value); in grn_output_float()
449 grn_output_str(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_str() argument
452 put_delimiter(ctx, outbuf, output_type); in grn_output_str()
455 grn_text_esc(ctx, outbuf, value, value_len); in grn_output_str()
458 grn_text_esc(ctx, outbuf, value, value_len); in grn_output_str()
461 GRN_TEXT_PUTS(ctx, outbuf, "<TEXT>"); in grn_output_str()
462 grn_text_escape_xml(ctx, outbuf, value, value_len); in grn_output_str()
463 GRN_TEXT_PUTS(ctx, outbuf, "</TEXT>"); in grn_output_str()
472 GRN_TEXT_PUT(ctx, outbuf, value, value_len); in grn_output_str()
481 grn_output_cstr(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_cstr() argument
484 grn_output_str(ctx, outbuf, output_type, value, strlen(value)); in grn_output_cstr()
488 grn_output_bool(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, grn_bool value) in grn_output_bool() argument
490 put_delimiter(ctx, outbuf, output_type); in grn_output_bool()
493 GRN_TEXT_PUTS(ctx, outbuf, value ? "true" : "false"); in grn_output_bool()
496 GRN_TEXT_PUTS(ctx, outbuf, value ? "true" : "false"); in grn_output_bool()
499 GRN_TEXT_PUTS(ctx, outbuf, "<BOOL>"); in grn_output_bool()
500 GRN_TEXT_PUTS(ctx, outbuf, value ? "true" : "false"); in grn_output_bool()
501 GRN_TEXT_PUTS(ctx, outbuf, "</BOOL>"); in grn_output_bool()
513 GRN_TEXT_PUTS(ctx, outbuf, value ? "true" : "false"); in grn_output_bool()
522 grn_output_null(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type) in grn_output_null() argument
524 put_delimiter(ctx, outbuf, output_type); in grn_output_null()
527 GRN_TEXT_PUTS(ctx, outbuf, "null"); in grn_output_null()
532 GRN_TEXT_PUTS(ctx, outbuf, "<NULL/>"); in grn_output_null()
548 grn_output_bulk_void(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_bulk_void() argument
552 grn_output_null(ctx, outbuf, output_type); in grn_output_bulk_void()
554 grn_output_str(ctx, outbuf, output_type, value, value_len); in grn_output_bulk_void()
559 grn_output_time(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, int64_t value) in grn_output_time() argument
563 put_delimiter(ctx, outbuf, output_type); in grn_output_time()
566 grn_text_ftoa(ctx, outbuf, dv); in grn_output_time()
569 grn_text_ftoa(ctx, outbuf, dv); in grn_output_time()
572 GRN_TEXT_PUTS(ctx, outbuf, "<DATE>"); in grn_output_time()
573 grn_text_ftoa(ctx, outbuf, dv); in grn_output_time()
574 GRN_TEXT_PUTS(ctx, outbuf, "</DATE>"); in grn_output_time()
582 grn_text_ftoa(ctx, outbuf, dv); in grn_output_time()
591 grn_output_geo_point(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_geo_point() argument
594 put_delimiter(ctx, outbuf, output_type); in grn_output_geo_point()
598 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
599 grn_text_itoa(ctx, outbuf, value->latitude); in grn_output_geo_point()
600 GRN_TEXT_PUTC(ctx, outbuf, 'x'); in grn_output_geo_point()
601 grn_text_itoa(ctx, outbuf, value->longitude); in grn_output_geo_point()
602 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
604 GRN_TEXT_PUTS(ctx, outbuf, "null"); in grn_output_geo_point()
609 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
610 grn_text_itoa(ctx, outbuf, value->latitude); in grn_output_geo_point()
611 GRN_TEXT_PUTC(ctx, outbuf, 'x'); in grn_output_geo_point()
612 grn_text_itoa(ctx, outbuf, value->longitude); in grn_output_geo_point()
613 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
615 GRN_TEXT_PUTS(ctx, outbuf, "\"\""); in grn_output_geo_point()
619 GRN_TEXT_PUTS(ctx, outbuf, "<GEO_POINT>"); in grn_output_geo_point()
621 grn_text_itoa(ctx, outbuf, value->latitude); in grn_output_geo_point()
622 GRN_TEXT_PUTC(ctx, outbuf, 'x'); in grn_output_geo_point()
623 grn_text_itoa(ctx, outbuf, value->longitude); in grn_output_geo_point()
625 GRN_TEXT_PUTS(ctx, outbuf, "</GEO_POINT>"); in grn_output_geo_point()
647 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
648 grn_text_itoa(ctx, outbuf, value->latitude); in grn_output_geo_point()
649 GRN_TEXT_PUTC(ctx, outbuf, 'x'); in grn_output_geo_point()
650 grn_text_itoa(ctx, outbuf, value->longitude); in grn_output_geo_point()
651 GRN_TEXT_PUTC(ctx, outbuf, '"'); in grn_output_geo_point()
653 GRN_TEXT_PUTS(ctx, outbuf, "\"\""); in grn_output_geo_point()
663 grn_text_atoj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_text_atoj() argument
752 grn_output_array_open(ctx, outbuf, output_type, "VECTOR", vs); in grn_text_atoj()
754 grn_text_atoj(ctx, outbuf, output_type, (grn_obj *)a->next, *idp); in grn_text_atoj()
756 grn_output_array_close(ctx, outbuf, output_type); in grn_text_atoj()
758 grn_text_atoj(ctx, outbuf, output_type, a->obj, id); in grn_text_atoj()
786 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_text_atoj()
820 grn_output_obj(ctx, outbuf, output_type, &buf, format_argument); in grn_text_atoj()
827 grn_output_void(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_void() argument
830 grn_output_null(ctx, outbuf, output_type); in grn_output_void()
834 grn_output_bulk(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_bulk() argument
841 grn_output_bulk_void(ctx, outbuf, output_type, GRN_BULK_HEAD(bulk), GRN_BULK_VSIZE(bulk)); in grn_output_bulk()
846 grn_output_str(ctx, outbuf, output_type, GRN_BULK_HEAD(bulk), GRN_BULK_VSIZE(bulk)); in grn_output_bulk()
849 grn_output_bool(ctx, outbuf, output_type, in grn_output_bulk()
853 grn_output_int32(ctx, outbuf, output_type, in grn_output_bulk()
857 grn_output_int32(ctx, outbuf, output_type, in grn_output_bulk()
861 grn_output_int32(ctx, outbuf, output_type, in grn_output_bulk()
865 grn_output_int32(ctx, outbuf, output_type, in grn_output_bulk()
869 grn_output_int32(ctx, outbuf, output_type, in grn_output_bulk()
873 grn_output_int64(ctx, outbuf, output_type, in grn_output_bulk()
877 grn_output_int64(ctx, outbuf, output_type, in grn_output_bulk()
881 grn_output_uint64(ctx, outbuf, output_type, in grn_output_bulk()
885 grn_output_float(ctx, outbuf, output_type, in grn_output_bulk()
889 grn_output_time(ctx, outbuf, output_type, in grn_output_bulk()
894 grn_output_geo_point(ctx, outbuf, output_type, in grn_output_bulk()
904 grn_output_array_open(ctx, outbuf, output_type, "COLUMNS", ncolumns); in grn_output_bulk()
907 grn_output_array_open(ctx, outbuf, output_type, "COLUMN", 2); in grn_output_bulk()
910 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_output_bulk()
914 GRN_TEXT_PUTS(ctx, outbuf, "null"); in grn_output_bulk()
925 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_output_bulk()
927 grn_output_array_close(ctx, outbuf, output_type); in grn_output_bulk()
929 grn_output_array_close(ctx, outbuf, output_type); in grn_output_bulk()
931 grn_output_array_open(ctx, outbuf, output_type, "HIT", ncolumns); in grn_output_bulk()
933 grn_text_atoj(ctx, outbuf, output_type, columns[j], id); in grn_output_bulk()
935 grn_output_array_close(ctx, outbuf, output_type); in grn_output_bulk()
951 grn_output_obj(ctx, outbuf, output_type, &buf, format); in grn_output_bulk()
953 grn_output_int64(ctx, outbuf, output_type, id); in grn_output_bulk()
963 grn_obj *outbuf, in grn_output_uvector_result_set() argument
991 grn_output_array_open(ctx, outbuf, output_type, "RESULTSET", n_elements); in grn_output_uvector_result_set()
993 grn_output_array_open(ctx, outbuf, output_type, "NHITS", 1); in grn_output_uvector_result_set()
994 grn_text_itoa(ctx, outbuf, n_hits); in grn_output_uvector_result_set()
995 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector_result_set()
998 grn_output_array_open(ctx, outbuf, output_type, "COLUMNS", n_columns); in grn_output_uvector_result_set()
1001 grn_output_array_open(ctx, outbuf, output_type, "COLUMN", 2); in grn_output_uvector_result_set()
1006 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_output_uvector_result_set()
1011 GRN_TEXT_PUTS(ctx, outbuf, "null"); in grn_output_uvector_result_set()
1022 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_output_uvector_result_set()
1025 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector_result_set()
1027 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector_result_set()
1034 grn_output_array_open(ctx, outbuf, output_type, "HITS", n_columns); in grn_output_uvector_result_set()
1038 grn_output_obj(ctx, outbuf, output_type, &buf, NULL); in grn_output_uvector_result_set()
1040 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector_result_set()
1043 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector_result_set()
1049 grn_output_uvector(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_uvector() argument
1067 grn_output_uvector_result_set(ctx, outbuf, output_type, uvector, format); in grn_output_uvector()
1083 grn_output_array_open(ctx, outbuf, output_type, "VECTOR", n); in grn_output_uvector()
1089 grn_output_obj(ctx, outbuf, output_type, &element, NULL); in grn_output_uvector()
1092 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector()
1103 grn_output_map_open(ctx, outbuf, output_type, "WEIGHT_VECTOR", n); in grn_output_uvector()
1105 grn_output_array_open(ctx, outbuf, output_type, "VECTOR", n); in grn_output_uvector()
1115 grn_output_obj(ctx, outbuf, output_type, &id_value, NULL); in grn_output_uvector()
1119 grn_output_obj(ctx, outbuf, output_type, &key_value, NULL); in grn_output_uvector()
1123 grn_output_uint64(ctx, outbuf, output_type, weight); in grn_output_uvector()
1128 grn_output_map_close(ctx, outbuf, output_type); in grn_output_uvector()
1130 grn_output_array_close(ctx, outbuf, output_type); in grn_output_uvector()
1140 grn_output_vector(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_vector() argument
1162 grn_output_map_open(ctx, outbuf, output_type, "WEIGHT_VECTOR", n); in grn_output_vector()
1176 grn_output_obj(ctx, outbuf, output_type, &value, NULL); in grn_output_vector()
1177 grn_output_uint64(ctx, outbuf, output_type, weight); in grn_output_vector()
1179 grn_output_map_close(ctx, outbuf, output_type); in grn_output_vector()
1186 grn_output_array_open(ctx, outbuf, output_type, "VECTOR", n); in grn_output_vector()
1200 grn_output_obj(ctx, outbuf, output_type, &value, NULL); in grn_output_vector()
1202 grn_output_array_close(ctx, outbuf, output_type); in grn_output_vector()
1208 grn_output_pvector(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_pvector() argument
1216 grn_output_array_open(ctx, outbuf, output_type, "VECTOR", -1); in grn_output_pvector()
1222 grn_output_obj(ctx, outbuf, output_type, value, NULL); in grn_output_pvector()
1224 grn_output_array_close(ctx, outbuf, output_type); in grn_output_pvector()
1230 grn_obj *outbuf, in grn_output_result_set_n_hits_v1() argument
1234 grn_output_array_open(ctx, outbuf, output_type, "NHITS", 1); in grn_output_result_set_n_hits_v1()
1236 grn_text_itoa(ctx, outbuf, format->nhits); in grn_output_result_set_n_hits_v1()
1238 grn_output_int32(ctx, outbuf, output_type, format->nhits); in grn_output_result_set_n_hits_v1()
1240 grn_output_array_close(ctx, outbuf, output_type); in grn_output_result_set_n_hits_v1()
1245 grn_obj *outbuf, in grn_output_result_set_n_hits_v3() argument
1249 grn_output_cstr(ctx, outbuf, output_type, "n_hits"); in grn_output_result_set_n_hits_v3()
1250 grn_output_int32(ctx, outbuf, output_type, format->nhits); in grn_output_result_set_n_hits_v3()
1255 grn_obj *outbuf, in grn_output_result_set_n_hits() argument
1264 grn_output_result_set_n_hits_v1(ctx, outbuf, output_type, format); in grn_output_result_set_n_hits()
1266 grn_output_result_set_n_hits_v3(ctx, outbuf, output_type, format); in grn_output_result_set_n_hits()
1272 grn_obj *outbuf, in grn_output_table_column_info() argument
1278 grn_output_array_open(ctx, outbuf, output_type, "COLUMN", 2); in grn_output_table_column_info()
1280 grn_output_cstr(ctx, outbuf, output_type, name); in grn_output_table_column_info()
1282 grn_output_null(ctx, outbuf, output_type); in grn_output_table_column_info()
1285 grn_output_cstr(ctx, outbuf, output_type, type); in grn_output_table_column_info()
1287 grn_output_null(ctx, outbuf, output_type); in grn_output_table_column_info()
1289 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_column_info()
1291 grn_output_map_open(ctx, outbuf, output_type, "column", 2); in grn_output_table_column_info()
1292 grn_output_cstr(ctx, outbuf, output_type, "name"); in grn_output_table_column_info()
1294 grn_output_cstr(ctx, outbuf, output_type, name); in grn_output_table_column_info()
1296 grn_output_null(ctx, outbuf, output_type); in grn_output_table_column_info()
1298 grn_output_cstr(ctx, outbuf, output_type, "type"); in grn_output_table_column_info()
1300 grn_output_cstr(ctx, outbuf, output_type, type); in grn_output_table_column_info()
1302 grn_output_null(ctx, outbuf, output_type); in grn_output_table_column_info()
1304 grn_output_map_close(ctx, outbuf, output_type); in grn_output_table_column_info()
1345 grn_output_table_column(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_column() argument
1352 grn_output_table_column_info(ctx, outbuf, output_type, NULL, NULL); in grn_output_table_column()
1374 outbuf, in grn_output_table_column()
1390 outbuf, in grn_output_table_column()
1398 grn_output_table_column_by_expression(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_column_by_expression() argument
1406 outbuf, in grn_output_table_column_by_expression()
1424 outbuf, in grn_output_table_column_by_expression()
1429 grn_output_table_column(ctx, outbuf, output_type, code->value, buf); in grn_output_table_column_by_expression()
1433 grn_output_table_column(ctx, outbuf, output_type, code->value, buf); in grn_output_table_column_by_expression()
1440 grn_obj *outbuf, in grn_output_table_columns_open() argument
1445 grn_output_array_open(ctx, outbuf, output_type, "COLUMNS", n_columns); in grn_output_table_columns_open()
1447 grn_output_cstr(ctx, outbuf, output_type, "columns"); in grn_output_table_columns_open()
1448 grn_output_array_open(ctx, outbuf, output_type, "columns", n_columns); in grn_output_table_columns_open()
1454 grn_obj *outbuf, in grn_output_table_columns_close() argument
1458 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_columns_close()
1460 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_columns_close()
1465 grn_output_table_columns_by_expression(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_columns_by_expression() argument
1480 grn_output_table_columns_open(ctx, outbuf, output_type, n_elements); in grn_output_table_columns_by_expression()
1497 grn_output_table_column_by_expression(ctx, outbuf, output_type, in grn_output_table_columns_by_expression()
1507 grn_output_table_column_by_expression(ctx, outbuf, output_type, in grn_output_table_columns_by_expression()
1515 grn_output_table_column_by_expression(ctx, outbuf, output_type, in grn_output_table_columns_by_expression()
1521 grn_output_table_columns_close(ctx, outbuf, output_type); in grn_output_table_columns_by_expression()
1525 grn_output_table_columns_by_columns(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_columns_by_columns() argument
1534 grn_output_table_columns_open(ctx, outbuf, output_type, ncolumns); in grn_output_table_columns_by_columns()
1536 grn_output_table_column(ctx, outbuf, output_type, columns[i], buf); in grn_output_table_columns_by_columns()
1538 grn_output_table_columns_close(ctx, outbuf, output_type); in grn_output_table_columns_by_columns()
1542 grn_output_table_columns(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_columns() argument
1550 grn_output_table_columns_by_expression(ctx, outbuf, output_type, in grn_output_table_columns()
1553 grn_output_table_columns_by_columns(ctx, outbuf, output_type, in grn_output_table_columns()
1561 grn_obj *outbuf, in grn_output_table_record_open() argument
1566 grn_output_array_open(ctx, outbuf, output_type, "HIT", n_columns); in grn_output_table_record_open()
1568 grn_output_array_open(ctx, outbuf, output_type, "record", n_columns); in grn_output_table_record_open()
1574 grn_obj *outbuf, in grn_output_table_record_close() argument
1578 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_record_close()
1580 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_record_close()
1586 grn_obj *outbuf, in grn_output_table_record_by_column() argument
1591 grn_text_atoj(ctx, outbuf, output_type, column, id); in grn_output_table_record_by_column()
1596 grn_obj *outbuf, in grn_output_table_record_by_expression() argument
1606 outbuf, in grn_output_table_record_by_expression()
1614 grn_output_obj(ctx, outbuf, output_type, result, NULL); in grn_output_table_record_by_expression()
1616 grn_output_cstr(ctx, outbuf, output_type, ctx->errbuf); in grn_output_table_record_by_expression()
1622 grn_output_table_records_by_expression(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_records_by_expression() argument
1641 grn_output_table_record_open(ctx, outbuf, output_type, n_elements); in grn_output_table_records_by_expression()
1659 outbuf, in grn_output_table_records_by_expression()
1670 outbuf, in grn_output_table_records_by_expression()
1682 outbuf, in grn_output_table_records_by_expression()
1688 grn_output_table_record_close(ctx, outbuf, output_type); in grn_output_table_records_by_expression()
1693 grn_output_table_records_by_columns(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_records_by_columns() argument
1703 grn_output_table_record_open(ctx, outbuf, output_type, ncolumns); in grn_output_table_records_by_columns()
1706 outbuf, in grn_output_table_records_by_columns()
1711 grn_output_table_record_close(ctx, outbuf, output_type); in grn_output_table_records_by_columns()
1717 grn_obj *outbuf, in grn_output_table_records_open() argument
1722 grn_output_cstr(ctx, outbuf, output_type, "records"); in grn_output_table_records_open()
1723 grn_output_array_open(ctx, outbuf, output_type, "records", n_records); in grn_output_table_records_open()
1729 grn_obj *outbuf, in grn_output_table_records_close() argument
1733 grn_output_array_close(ctx, outbuf, output_type); in grn_output_table_records_close()
1738 grn_output_table_records(grn_ctx *ctx, grn_obj *outbuf, in grn_output_table_records() argument
1744 grn_output_table_records_open(ctx, outbuf, output_type, format->limit); in grn_output_table_records()
1750 grn_output_table_records_by_expression(ctx, outbuf, output_type, in grn_output_table_records()
1753 grn_output_table_records_by_columns(ctx, outbuf, output_type, in grn_output_table_records()
1760 grn_output_table_records_close(ctx, outbuf, output_type); in grn_output_table_records()
1765 grn_obj *outbuf, in grn_output_result_set_open_v1() argument
1781 grn_output_array_open(ctx, outbuf, output_type, "RESULTSET", resultset_size); in grn_output_result_set_open_v1()
1782 grn_output_result_set_n_hits(ctx, outbuf, output_type, format); in grn_output_result_set_open_v1()
1784 grn_output_table_columns(ctx, outbuf, output_type, table, format); in grn_output_result_set_open_v1()
1786 grn_output_table_records(ctx, outbuf, output_type, table, format); in grn_output_result_set_open_v1()
1794 grn_output_array_open(ctx, outbuf, output_type, "HIT", -1); in grn_output_result_set_open_v1()
1800 grn_text_esc(ctx, outbuf, GRN_BULK_HEAD(&buf), GRN_BULK_VSIZE(&buf)); in grn_output_result_set_open_v1()
1811 grn_obj *outbuf, in grn_output_result_set_close_v1() argument
1816 grn_output_array_close(ctx, outbuf, output_type); in grn_output_result_set_close_v1()
1821 grn_obj *outbuf, in grn_output_result_set_open_v3() argument
1836 grn_output_map_open(ctx, outbuf, output_type, "result_set", n_elements); in grn_output_result_set_open_v3()
1837 grn_output_result_set_n_hits(ctx, outbuf, output_type, format); in grn_output_result_set_open_v3()
1839 grn_output_table_columns(ctx, outbuf, output_type, result_set, format); in grn_output_result_set_open_v3()
1841 grn_output_table_records(ctx, outbuf, output_type, result_set, format); in grn_output_result_set_open_v3()
1852 grn_output_map_open(ctx, outbuf, output_type, "result_set", n_elements); in grn_output_result_set_open_v3()
1854 grn_output_cstr(ctx, outbuf, output_type, "keys"); in grn_output_result_set_open_v3()
1855 grn_output_array_open(ctx, outbuf, output_type, "keys", n_records); in grn_output_result_set_open_v3()
1859 grn_text_esc(ctx, outbuf, GRN_BULK_HEAD(&buf), GRN_BULK_VSIZE(&buf)); in grn_output_result_set_open_v3()
1861 grn_output_array_close(ctx, outbuf, output_type); in grn_output_result_set_open_v3()
1869 grn_obj *outbuf, in grn_output_result_set_close_v3() argument
1874 grn_output_map_close(ctx, outbuf, output_type); in grn_output_result_set_close_v3()
1879 grn_obj *outbuf, in grn_output_result_set_open() argument
1887 outbuf, in grn_output_result_set_open()
1894 outbuf, in grn_output_result_set_open()
1904 grn_obj *outbuf, in grn_output_result_set_close() argument
1910 grn_output_result_set_close_v1(ctx, outbuf, output_type, result_set, format); in grn_output_result_set_close()
1912 grn_output_result_set_close_v3(ctx, outbuf, output_type, result_set, format); in grn_output_result_set_close()
1918 grn_obj *outbuf, in grn_output_result_set() argument
1926 outbuf, in grn_output_result_set()
1931 grn_output_result_set_close(ctx, outbuf, output_type, result_set, format); in grn_output_result_set()
1935 grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, in grn_output_obj() argument
1942 grn_output_void(ctx, outbuf, output_type, obj, format); in grn_output_obj()
1945 grn_output_bulk(ctx, outbuf, output_type, obj, format); in grn_output_obj()
1948 grn_output_uvector(ctx, outbuf, output_type, obj, format); in grn_output_obj()
1951 grn_output_vector(ctx, outbuf, output_type, obj, format); in grn_output_obj()
1954 grn_output_pvector(ctx, outbuf, output_type, obj, format); in grn_output_obj()
1961 grn_output_result_set(ctx, outbuf, output_type, obj, format); in grn_output_obj()