Compressed bitmap indexes: beyond unions and intersections

Owen Kaser, Daniel Lemire
2/18/2014
cs.DBcs.DS

Official code: lemire/javaewah (568 stars, Apache-2.0, last commit 2025-10-21).

Abstract

Compressed bitmap indexes are used to speed up simple aggregate queries in databases. Indeed, set operations like intersections, unions and complements can be represented as logical operations (AND,OR,NOT) that are ideally suited for bitmaps. However, it is less obvious how to apply bitmaps to more advanced queries. For example, we might seek products in a store that meet some, but maybe not all, criteria. Such threshold queries generalize intersections and unions; they are often used in information-retrieval and data-mining applications. We introduce new algorithms that are sometimes three orders of magnitude faster than a naive approach. Our work shows that bitmap indexes are more broadly applicable than is commonly believed.

View on arXivView PDF

Code Implementations(1)

lemire/javaewahOfficial100%
Apache-2.0

A compressed alternative to the Java BitSet class

568111JavaOct 4, 20101 years agoApache-2.0
bitmap-indexesbitsetewahjava

Similar Papers

Cite this paper

@article{kaser2014compressed,
  title  = {Compressed bitmap indexes: beyond unions and intersections},
  author = {Owen Kaser and Daniel Lemire},
  year   = {2014},
  eprint = {1402.4466},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1402.4466}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1402.4466.svg)](https://codeofpaper.com/paper/1402.4466)

Discussion