Kouhei Sutou 2019-04-05 12:03:27 +0900 (Fri, 05 Apr 2019) Revision: a488ff604266bb28fb93b7d20bca79893b51a3a4 https://github.com/groonga/groonga/commit/a488ff604266bb28fb93b7d20bca79893b51a3a4 Message: object_inspect column_index: add more physical segment information Added files: test/command/suite/object_inspect/column/index_large.test Copied files: test/command/suite/object_inspect/column/index_large.expected (from test/command/suite/object_inspect/column/index.expected) Modified files: lib/proc/proc_object_inspect.c test/command/suite/object_inspect/column/index.expected Modified: lib/proc/proc_object_inspect.c (+7 -1) =================================================================== --- lib/proc/proc_object_inspect.c 2019-04-05 11:34:19 +0900 (d9ad7dfc5) +++ lib/proc/proc_object_inspect.c 2019-04-05 12:03:27 +0900 (06801551a) @@ -242,7 +242,7 @@ static void command_object_inspect_column_index_value_statistics(grn_ctx *ctx, grn_ii *ii) { - grn_ctx_output_map_open(ctx, "statistics", 11); + grn_ctx_output_map_open(ctx, "statistics", 13); { grn_ii_header_common *h = ii->header.common; @@ -344,6 +344,12 @@ command_object_inspect_column_index_value_statistics(grn_ctx *ctx, } grn_ctx_output_array_close(ctx); } + + grn_ctx_output_cstr(ctx, "next_physical_segment_id"); + grn_ctx_output_uint64(ctx, h->pnext); + + grn_ctx_output_cstr(ctx, "max_n_next_physical_segments"); + grn_ctx_output_uint64(ctx, ii->seg->header->max_segment); } grn_ctx_output_map_close(ctx); } Modified: test/command/suite/object_inspect/column/index.expected (+3 -1) =================================================================== --- test/command/suite/object_inspect/column/index.expected 2019-04-05 11:34:19 +0900 (9553b52dc) +++ test/command/suite/object_inspect/column/index.expected 2019-04-05 12:03:27 +0900 (03fa5cd90) @@ -93,7 +93,9 @@ object_inspect Terms.memos_title_content 0, 0, 0 - ] + ], + "next_physical_segment_id": 0, + "max_n_next_physical_segments": 131072 } }, "sources": [ Copied: test/command/suite/object_inspect/column/index_large.expected (+5 -3) 94% =================================================================== --- test/command/suite/object_inspect/column/index.expected 2019-04-05 11:34:19 +0900 (9553b52dc) +++ test/command/suite/object_inspect/column/index_large.expected 2019-04-05 12:03:27 +0900 (21fa8c071) @@ -6,7 +6,7 @@ column_create Memos content COLUMN_SCALAR Text [[0,0.0,0.0],true] table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerAuto --default_tokenizer TokenBigram [[0,0.0,0.0],true] -column_create Terms memos_title_content COLUMN_INDEX|WITH_POSITION|WITH_SECTION Memos title,content +column_create Terms memos_title_content COLUMN_INDEX|WITH_POSITION|WITH_SECTION|INDEX_LARGE Memos title,content [[0,0.0,0.0],true] object_inspect Terms.memos_title_content [ @@ -65,7 +65,7 @@ object_inspect Terms.memos_title_content "section": true, "weight": false, "position": true, - "size": "normal", + "size": "large", "statistics": { "max_section_id": 0, "n_garbage_segments": 0, @@ -93,7 +93,9 @@ object_inspect Terms.memos_title_content 0, 0, 0 - ] + ], + "next_physical_segment_id": 0, + "max_n_next_physical_segments": 262144 } }, "sources": [ Added: test/command/suite/object_inspect/column/index_large.test (+12 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/object_inspect/column/index_large.test 2019-04-05 12:03:27 +0900 (98d498703) @@ -0,0 +1,12 @@ +table_create Memos TABLE_NO_KEY +column_create Memos title COLUMN_SCALAR ShortText +column_create Memos content COLUMN_SCALAR Text + +table_create Terms TABLE_PAT_KEY ShortText \ + --normalizer NormalizerAuto \ + --default_tokenizer TokenBigram +column_create Terms memos_title_content \ + COLUMN_INDEX|WITH_POSITION|WITH_SECTION|INDEX_LARGE \ + Memos title,content + +object_inspect Terms.memos_title_content -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190405/0d4a5f40/attachment-0001.html>