Add cache for Vlist

Add functions and members used to add cache for Vlist
This commit is contained in:
ZongyueQin 2017-07-15 10:38:59 +08:00 committed by GitHub
parent 47c41670a7
commit 32020bdaca
1 changed files with 14 additions and 1 deletions

View File

@ -150,7 +150,20 @@ private:
void load_sub2values(int _mode);
void load_obj2values(int _mode);
void load_pre2values(int _mode);
// functions used to build cache
void load_cache();
void get_important_preID();
std::vector <TYPE_PREDICATE_ID> important_preID;
void load_important_sub2values();
void load_important_obj2values();
void build_CacheOfSub2values();
void build_CacheOfObj2values();
void get_important_subID();
void get_important_objID();
std::priority_queue <KEY_SIZE_VALUE> important_subID;
std::priority_queue <KEY_SIZE_VALUE> important_objID;
//triple num per group for insert/delete
//can not be too high, otherwise the heap will over
static const int GROUP_SIZE = 1000;