public class BloomFilter.BitSet extends Object
Constructor and Description |
---|
BloomFilter.BitSet(long bits) |
BloomFilter.BitSet(long[] data)
Deserialize long array as bit set.
|
Modifier and Type | Method and Description |
---|---|
long |
bitSize()
Number of bits
|
void |
clear()
Clear the bit set.
|
boolean |
get(int index)
Returns true if the bit is set in the specified index.
|
long[] |
getData() |
void |
putAll(BloomFilter.BitSet array)
Combines the two BitArrays using bitwise OR.
|
void |
set(int index)
Sets the bit at specified index.
|
public BloomFilter.BitSet(long bits)
public BloomFilter.BitSet(long[] data)
data
- - bit arraypublic void set(int index)
index
- - positionpublic boolean get(int index)
index
- - positionpublic long bitSize()
public long[] getData()
public void putAll(BloomFilter.BitSet array)
public void clear()
Copyright © 2017 The Apache Software Foundation. All rights reserved.