Description
JavaEWAH is a Java library for compressed bitmaps. It is a word-aligned variant of the Java BitSet class, with a 64-bit and a 32-bit run-length style compression scheme. The main use is building bitmap indexes, where query speed matters more than the smallest possible storage. The README says the EWAH format is the one used by the git implementation that runs GitHub, and that JavaEWAH is part of Apache Hive and its derivatives. It supports memory-mapped files, so you can serialize bitmaps to disk and map them into memory with java.nio. It also includes an uncompressed BitSet drop-in replacement with the same extras. The README recommends the 64-bit version on a 64-bit JVM for speed, and the 32-bit version for better compression at the cost of speed, and it advises running your own benchmark. Java 6 or later is required, and the README says the latest OpenJDK release gave the best performance.…
Highlights
- Compressed bitmap class based on EWAH
- 64-bit and 32-bit compression schemes
- Memory-mapped bitmap files
- BitSet drop-in replacement
Ratings & Reviews
No ratings yet
Be the first to rate Javaewah.
People also visit

java-add-graalvm-native-image-support
Automate GraalVM native image configuration, build

graalvm-native-image
Provides expert guidance for building GraalVM Native Image executables
Compressed Size Action
GitHub Action that adds compressed size changes to your PRs
JDK Mission Control
Tools to manage, monitor, profile and troubleshoot Java applications
Javaewah FAQ
What is it used for?
Bitmap indexes and other places where you need fast queries over compressed bit sets.
What is the difference between the two versions?
The 64-bit version is faster on 64-bit JVMs. The 32-bit version compresses better but is slower.
What Java version do I need?
Java 6 or later. The README says the latest OpenJDK release performed best.
Can I store bitmaps on disk?
Yes. Bitmaps can be serialized to disk and memory-mapped with java.nio, which avoids serialization on load.
Is it used in real systems?
The README says JavaEWAH is part of Apache Hive and its derivatives.
What are the best Javaewah alternatives?
Popular alternatives to Javaewah include AWS Corretto JDK, JDK Mission Control and Optimus. See all Javaewah alternatives



