• R/O
  • R/W (SSH)
  • R/W (HTTPS)

senna-java: コミット


コミットメタ情報

リビジョン11 (tree)
日時2008-12-22 18:19:41
作者mir

ログメッセージ

* src/jni/senna_Index.c (Java_senna_Index_printInfo): update types for new sen_index_info signature
* src/test/senna/IndexTest.java: add/move call for printInfo()

変更サマリ

差分

--- trunk/ChangeLog (revision 10)
+++ trunk/ChangeLog (revision 11)
@@ -1,4 +1,8 @@
11 2008-12-22 Tetsuro IKEDA <ikdttr@gmail.com>
2+ * src/jni/senna_Index.c (Java_senna_Index_printInfo): update types for new sen_index_info signature
3+ * src/test/senna/IndexTest.java: add/move call for printInfo()
4+
5+2008-12-22 Tetsuro IKEDA <ikdttr@gmail.com>
26 * src/test/senna/SnippetTest.java: add logging
37 * src/test/senna/IndexTest.java: add logging
48 * src/jni/senna_SennaLogger.c (Java_senna_SennaLogger_write): works now
--- trunk/src/test/senna/IndexTest.java (revision 10)
+++ trunk/src/test/senna/IndexTest.java (revision 11)
@@ -41,6 +41,7 @@
4141 // create
4242 Index index = Index.create("tests/testindex");
4343 assertNotNull(index);
44+ index.printInfo();
4445 index.close();
4546 // rename
4647 Index.rename("tests/testindex", "tests/testrename");
@@ -55,8 +56,8 @@
5556 public void testInsert() throws Exception {
5657 SennaLogger.write(Senna.SEN_LOG_DEBUG, "=== IndexTest#testInsert() ===");
5758 Index index = Index.create("tests/testindex",0,0,0,Senna.SEN_ENC_UTF8);
59+ index.insert("ほげ", "東京都");
5860 index.printInfo();
59- index.insert("ほげ", "東京都");
6061 Records records = index.sel("東京");
6162 assertNotNull(records);
6263 assertEquals(1, records.nhits());
--- trunk/src/jni/senna_Index.c (revision 10)
+++ trunk/src/jni/senna_Index.c (revision 11)
@@ -168,8 +168,8 @@
168168 unsigned int file_size_keys;
169169 unsigned int nrecords_lexicon;
170170 unsigned int file_size_lexicon;
171- unsigned int inv_seg_size;
172- unsigned int inv_chunk_size;
171+ unsigned long long inv_seg_size;
172+ unsigned long long inv_chunk_size;
173173 sen_rc rc;
174174
175175 index = this_sen_index(env, obj);
@@ -189,8 +189,8 @@
189189 printf("file_size_keys %24u\n", file_size_keys);
190190 printf("nrecords_lexicon %24u\n", nrecords_lexicon);
191191 printf("file_size_lexicon %24u\n", file_size_lexicon);
192- printf("inv_segment_size %24u\n", inv_seg_size);
193- printf("inv_chunk_size %24u\n", inv_chunk_size);
192+ printf("inv_segment_size %24llu\n", inv_seg_size);
193+ printf("inv_chunk_size %24llu\n", inv_chunk_size);
194194 }
195195
196196 JNIEXPORT void JNICALL
旧リポジトリブラウザで表示