public static class BloomKFilter.BitSet extends Object
Constructor and Description |
---|
BitSet(long bits) |
BitSet(long[] data)
Deserialize long array as bit set.
|
Modifier and Type | Method and Description |
---|---|
int |
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(BloomKFilter.BitSet array)
Combines the two BitArrays using bitwise OR.
|
void |
set(int index)
Sets the bit at specified index.
|
public BitSet(long bits)
public BitSet(long[] data)
data
- - bit arraypublic void set(int index)
index
- - positionpublic boolean get(int index)
index
- - positionpublic int bitSize()
public long[] getData()
public void putAll(BloomKFilter.BitSet array)
public void clear()
Copyright © 2021 The Apache Software Foundation. All rights reserved.