-
- Downloads
[SPARK-1268] Adding XOR and AND-NOT operations to spark.util.collection.BitSet
Symmetric difference (xor) in particular is useful for computing some distance metrics (e.g. Hamming). Unit tests added. Author: Petko Nikolov <nikolov@soundcloud.com> Closes #172 from petko-nikolov/bitset-imprv and squashes the following commits: 451f28b [Petko Nikolov] fixed style mistakes 5beba18 [Petko Nikolov] rm outer loop in andNot test 0e61035 [Petko Nikolov] conform to spark style; rm redundant asserts; more unit tests added; use arraycopy instead of loop d53cdb9 [Petko Nikolov] rm incidentally added space 4e1df43 [Petko Nikolov] adding xor and and-not to BitSet; unit tests added
Showing
- core/src/main/scala/org/apache/spark/util/collection/BitSet.scala 39 additions, 0 deletions.../main/scala/org/apache/spark/util/collection/BitSet.scala
- core/src/test/scala/org/apache/spark/util/collection/BitSetSuite.scala 83 additions, 0 deletions.../scala/org/apache/spark/util/collection/BitSetSuite.scala
Loading
Please register or sign in to comment