diff options
author | Peng Wu <alexepico@gmail.com> | 2015-04-14 16:45:14 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-04-14 16:45:14 +0800 |
commit | f18291a36a316496e63142cc34b01377c6b5a58e (patch) | |
tree | 7de7e101c7859dfb72bef5e3b10ab51d0ac80596 /src/storage/ngram_kyotodb.h | |
parent | e8d9463f45a7214e0eb36cfe09f45cce3b7baeb9 (diff) | |
download | libpinyin-f18291a36a316496e63142cc34b01377c6b5a58e.tar.gz libpinyin-f18291a36a316496e63142cc34b01377c6b5a58e.tar.xz libpinyin-f18291a36a316496e63142cc34b01377c6b5a58e.zip |
write ngram_kyotodb.cpp in progress
Diffstat (limited to 'src/storage/ngram_kyotodb.h')
-rw-r--r-- | src/storage/ngram_kyotodb.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/storage/ngram_kyotodb.h b/src/storage/ngram_kyotodb.h index 6c5eea0..2c156de 100644 --- a/src/storage/ngram_kyotodb.h +++ b/src/storage/ngram_kyotodb.h @@ -22,7 +22,7 @@ #ifndef NGRAM_KYOTODB_H #define NGRAM_KYOTODB_H -#include <kchashdb.h> +#include <kcdb.h> #include "memory_chunk.h" namespace pinyin{ @@ -37,13 +37,11 @@ class SingleGram; */ class Bigram{ private: - kyotocabinet::DB * m_db; + kyotocabinet::BasicDB * m_db; /* memory chunk for Kyoto Cabinet. */ MemoryChunk m_chunk; - /* Note: sync mask_out code with ngram_bdb.cpp. */ - void reset(); public: |