org.roaringbitmap.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of RoaringBitmap Show documentation
Show all versions of RoaringBitmap Show documentation
Roaring bitmaps are compressed bitmaps (also called bitsets) which tend to outperform
conventional compressed bitmaps such as WAH or Concise.
/*
* (c) the authors Licensed under the Apache License, Version 2.0.
*/
/**
* The org.roaringbitmap package provides
* one class ({@link org.roaringbitmap.RoaringBitmap}) that users
* can rely upon for fast set of integers.
*
*
*
* {@code
* import org.roaringbitmap.*;
*
* //...
*
* RoaringBitmap r1 = new RoaringBitmap();
* for(int k = 4000; k<4255;++k) r1.add(k);
*
* RoaringBitmap r2 = new RoaringBitmap();
* for(int k = 1000; k<4255; k+=2) r2.add(k);
*
* RoaringBitmap union = RoaringBitmap.or(r1, r2);
* RoaringBitmap intersection = RoaringBitmap.and(r1, r2);
*
* //...
* DataOutputStream wheretoserialize = ...
* r1.runOptimize(); // can help compression
* r1.serialize(wheretoserialize);
* }
*
*
*/
package org.roaringbitmap;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy