public static class BloomFilter.BitSet extends Object
| Constructor and Description | 
|---|
| BitSet(long bits) | 
| 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 | equals(Object other) | 
| boolean | get(int index)Returns true if the bit is set in the specified index. | 
| long[] | getData() | 
| int | hashCode() | 
| void | putAll(BloomFilter.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 long bitSize()
public long[] getData()
public void putAll(BloomFilter.BitSet array)
public void clear()
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.