summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-29 16:31:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-29 16:31:08 +0800
commit1eacb0a42d5c7263369fb1f712506aa28d0c37f7 (patch)
tree3ce03e11be3583d6e4ccc6d9f008395d28baa0ac /src/storage/chewing_large_table.h
parent192b5d79a24c36f0c1247bf837e2e837098145f6 (diff)
downloadlibpinyin-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.h11
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();