Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terark_zip_table: store GroupSize of Multi-Value pack in separated array #37

Open
rockeet opened this issue Oct 31, 2018 · 0 comments
Open
Assignees

Comments

@rockeet
Copy link
Member

rockeet commented Oct 31, 2018

Priority: Low

Now terark_zip_table has zvType, but we don't know GroupSize of each MultiValue pack before unzip it. To get GroupSize before unzip with succinct:

  1. Needs 2-bit rank: rank0, rank1, rank2, rank3
  2. Build RankIndex for zvType
  3. Store GroupSize in a separated array

High level code:

size_t groupIndex = zvType.rank3(recId); // 3 == ZipValueType::kMulti
groupSize = groupSizeVec[groupIndex];
// ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants