Comments (3)
We need a reproducible test case. The current report is incomplete and cannot be investigated.
I am going to close this. Please open a new bug report with an example of the issue you have outlined. The example should be reproducible.
from roaringbitmap.
Please be aware that it is most likely that the bug is in your own code. You need to do enough investigation to provide strong evidence that the bug is in our library.
If you have done this work, then you should be able to provide us with enough information so that we can reproduce the issue.
We are not magicians: if we cannot verify that there is an issue, then we have no hope of fixing it.
from roaringbitmap.
@lemire
Okay, I'll give you the duplicate code
import com.fasterxml.jackson.databind.ObjectMapper;
import org.roaringbitmap.RoaringBitmap;
import java.io.File;
import java.io.IOException;
/**
* <br>
* 〈〉
*
* @author shencangsheng
* @create 2023/7/24
*/
public class Main {
public static void main(String[] args) throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
RoaringBitmap s1 = RoaringBitmap.bitmapOf(objectMapper.readValue(new File("/tmp/s1.json"), int[].class));
RoaringBitmap s2 = RoaringBitmap.bitmapOf(objectMapper.readValue(new File("/tmp/s2.json"), int[].class));
System.out.println(RoaringBitmap.andNotCardinality(s1, s2));
System.out.println(RoaringBitmap.andNot(s1, s2).getCardinality());
}
}
This is the output
This is the input file
from roaringbitmap.
Related Issues (20)
- Roaring64Bitmap : Overflow error when calculating ANDNOT between two 64-bitmaps HOT 6
- Can't check value 65535 using `contains(long minimum, long supremum)` HOT 9
- Can't find version 0.9.41 in the Maven repository HOT 3
- RoaringBitmap add an efficient `findOffset` method for the index of one assigned value. HOT 7
- Roaring Wavelet Trees? HOT 1
- Not able to stringify roaring bitmap. HOT 1
- Seeing null element in highLowContainer HOT 1
- Inconsistent Results between `RoaringBitmap.andNotCardinality(s1, s2)` and `RoaringBitmap.andNot(s1, s2).getCardinality()` HOT 3
- How to and List<? extends RoaringBitmap> efficiently HOT 3
- Support for the Java module system? HOT 14
- intersect method throws ArrayIndexOutOfBoundsException after serialize/deserialize HOT 3
- Question about Roaring64Bitmap mapping and streaming HOT 1
- Implement roaring_bitmap_internal_validate HOT 2
- An overflow when infinitely iterating over run containers, ArrayIndexOutOfBoundException is thrown then HOT 3
- OSGi Bundles support HOT 1
- Mutable RangeBitmap appender HOT 5
- ImmutableBitmap's batchiterator.advanceIfNeeded skips over target in certain conditions HOT 3
- AddOffset for Roaring64Bitmap
- Or of two RunContainers can produce an under-sized BitmapContainer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roaringbitmap.