Kouhei Sutou
null+****@clear*****
Wed Dec 31 17:02:27 JST 2014
Kouhei Sutou 2014-12-31 17:02:27 +0900 (Wed, 31 Dec 2014) New Revision: 0e22de4cbb33cb4ff059fed15f0c3c40bfc57994 https://github.com/groonga/groonga-admin/commit/0e22de4cbb33cb4ff059fed15f0c3c40bfc57994 Message: table-list: set type Modified files: app/scripts/groonga-client/response/table-list.js Modified: app/scripts/groonga-client/response/table-list.js (+11 -0) =================================================================== --- app/scripts/groonga-client/response/table-list.js 2014-12-31 17:02:12 +0900 (a0c9440) +++ app/scripts/groonga-client/response/table-list.js 2014-12-31 17:02:27 +0900 (f70f91c) @@ -43,6 +43,17 @@ table.isPatriciaTrie = table.flags.indexOf('TABLE_PAT_KEY') != -1; table.isDoubleArrayTrie = table.flags.indexOf('TABLE_DAT_KEY') != -1; table.hasKey = !table.isArray; + if (table.isArray) { + table.type = 'array'; + } else if (table.isHashTable) { + table.type = 'hash table'; + } else if (table.isPatriciaTrie) { + table.type = 'patricia trie'; + } else if (table.isDoubleArrayTrie) { + table.type = 'double array trie'; + } else { + table.type = 'unknown'; + } return table; }); }; -------------- next part -------------- HTML����������������������������...Download