Kouhei Sutou
null+****@clear*****
Sat Sep 26 13:52:22 JST 2015
Kouhei Sutou 2015-09-26 13:52:22 +0900 (Sat, 26 Sep 2015) New Revision: c61f915c1073057cc59ab32a15dc68cac4c89442 https://github.com/groonga/groonga/commit/c61f915c1073057cc59ab32a15dc68cac4c89442 Message: Export grn_ii_cursor as experimental API "nelements" in grn_ii_cursor_open() is meaningless for now. Because we can't use ii->n_elements. grn_ii is opaque struct. We need to reconsider about the argument. Modified files: include/groonga/ii.h lib/grn_ii.h Modified: include/groonga/ii.h (+8 -0) =================================================================== --- include/groonga/ii.h 2015-09-26 13:45:28 +0900 (bd2250d) +++ include/groonga/ii.h 2015-09-26 13:52:22 +0900 (f399398) @@ -46,6 +46,14 @@ GRN_API grn_rc grn_ii_buffer_append(grn_ctx *ctx, GRN_API grn_rc grn_ii_buffer_commit(grn_ctx *ctx, grn_ii_buffer *ii_buffer); GRN_API grn_rc grn_ii_buffer_close(grn_ctx *ctx, grn_ii_buffer *ii_buffer); + +/* Experimental */ +typedef struct _grn_ii_cursor grn_ii_cursor; +GRN_API grn_ii_cursor *grn_ii_cursor_open(grn_ctx *ctx, grn_ii *ii, grn_id tid, + grn_id min, grn_id max, int nelements, int flags); +GRN_API grn_posting *grn_ii_cursor_next(grn_ctx *ctx, grn_ii_cursor *c); +GRN_API grn_rc grn_ii_cursor_close(grn_ctx *ctx, grn_ii_cursor *c); + #ifdef __cplusplus } #endif Modified: lib/grn_ii.h (+0 -6) =================================================================== --- lib/grn_ii.h 2015-09-26 13:45:28 +0900 (10c7e5b) +++ lib/grn_ii.h 2015-09-26 13:52:22 +0900 (4dc3c4a) @@ -107,18 +107,12 @@ int grn_ii_updspec_cmp(grn_ii_updspec *a, grn_ii_updspec *b); void grn_ii_expire(grn_ctx *ctx, grn_ii *ii); grn_rc grn_ii_flush(grn_ctx *ctx, grn_ii *ii); -typedef struct _grn_ii_cursor grn_ii_cursor; - GRN_API grn_rc grn_ii_posting_add(grn_ctx *ctx, grn_posting *pos, grn_hash *s, grn_operator op); -GRN_API grn_ii_cursor *grn_ii_cursor_open(grn_ctx *ctx, grn_ii *ii, grn_id tid, - grn_id min, grn_id max, int nelements, int flags); grn_ii_cursor *grn_ii_cursor_openv1(grn_ii *ii, uint32_t key); grn_rc grn_ii_cursor_openv2(grn_ii_cursor **cursors, int ncursors); -GRN_API grn_posting *grn_ii_cursor_next(grn_ctx *ctx, grn_ii_cursor *c); grn_posting *grn_ii_cursor_next_pos(grn_ctx *ctx, grn_ii_cursor *c); -GRN_API grn_rc grn_ii_cursor_close(grn_ctx *ctx, grn_ii_cursor *c); uint32_t grn_ii_max_section(grn_ii *ii); -------------- next part -------------- HTML����������������������������...Download