From 1f23a4aa0f7454d8e9dbc53e4366b7a3fe338aa7 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sat, 9 Oct 2010 15:07:58 +0800 Subject: re-factor phrase large table --- src/storage/phrase_large_table.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/storage/phrase_large_table.h') diff --git a/src/storage/phrase_large_table.h b/src/storage/phrase_large_table.h index 3c140b9..42eeec4 100644 --- a/src/storage/phrase_large_table.h +++ b/src/storage/phrase_large_table.h @@ -55,41 +55,6 @@ public: int remove_index( int phrase_length, /* in */ utf16_t phrase[], /* out */ phrase_token_t & token); }; -class PhraseLengthIndexLevel{ -protected: - GArray* m_phrase_array_indexes; -public: - PhraseLengthIndexLevel(); - ~PhraseLengthIndexLevel(); - - /* load/store method */ - bool load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end); - bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end); - - /* search/add_index/remove_index method */ - int search( int phrase_length, /* in */ utf16_t phrase[], - /* out */ phrase_token_t & token); - - int add_index( int phrase_length, /* in */ utf16_t phrase[], /* in */ phrase_token_t token); - int remove_index( int phrase_length, /* in */ utf16_t phrase[], /* out */ phrase_token_t & token); -}; - -template -class PhraseArrayIndexLevel{ -protected: - MemoryChunk m_chunk; -public: - bool load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end); - bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end); - - /* search/add_index/remove_index method */ - int search( /* in */ utf16_t phrase[], - /* out */ phrase_token_t & token); - - int add_index(/* in */ utf16_t phrase[], /* in */ phrase_token_t token); - int remove_index(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token); -}; - class PhraseLargeTable{ protected: PhraseBitmapIndexLevel m_bitmap_table; -- cgit