I'm trying to do some distinct integer statistics in java and operate it in python.
The python has a package named bitarray
while it can't operate with java.util.BitSet
and which it has more constraints like the logical operation must be operated on same length bitset.
while the java BitSet doesn't have this constraint.
So this python implementation, shares same operation and data structures with java impl. Now it includes BitSet
pip install javaCollectionInPython
see github and the example.py
- this code works on little endian machines. some code is removed. If needed, it can be easily fixed.
- some methods name is changed because of reserved word in python or the same method has different args not support.