diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-29 16:31:08 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-29 16:31:08 +0800 |
commit | 1eacb0a42d5c7263369fb1f712506aa28d0c37f7 (patch) | |
tree | 3ce03e11be3583d6e4ccc6d9f008395d28baa0ac /src/storage/chewing_large_table.h | |
parent | 192b5d79a24c36f0c1247bf837e2e837098145f6 (diff) | |
download | libpinyin-1eacb0a42d5c7263369fb1f712506aa28d0c37f7.tar.gz libpinyin-1eacb0a42d5c7263369fb1f712506aa28d0c37f7.tar.xz libpinyin-1eacb0a42d5c7263369fb1f712506aa28d0c37f7.zip |
write chewing large table in progress
Diffstat (limited to 'src/storage/chewing_large_table.h')
-rw-r--r-- | src/storage/chewing_large_table.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h index 52ee01b..071101f 100644 --- a/src/storage/chewing_large_table.h +++ b/src/storage/chewing_large_table.h @@ -56,6 +56,12 @@ public: ChewingBitmapIndexLevel(pinyin_option_t options) : m_options(options){} ~ChewingBitmapIndexLevel() { reset(); } + /* set options method */ + bool set_options(pinyin_option_t options) { + m_options = options; + return true; + } + /* load/store method */ bool load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end); bool store(MemoryChunk * new_chunk, table_offset_t offset, @@ -91,6 +97,11 @@ public: ~ChewingLargeTable() { reset(); } + /* set options method */ + bool set_options(pinyin_option_t options) { + return m_bitmap_table.set_options(options); + } + /* load/store method */ bool load(MemoryChunk * chunk) { reset(); |