|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.zeno.fastblob.state.ThreadSafeBitSet
public class ThreadSafeBitSet
This is a lock-free, thread-safe version of a BitSet
.
Constructor Summary | |
---|---|
ThreadSafeBitSet()
|
|
ThreadSafeBitSet(int log2SegmentSizeInBits)
|
Method Summary | |
---|---|
ThreadSafeBitSet |
andNot(ThreadSafeBitSet other)
Return a new bit set which contains all bits which are contained in this bit set, and which are NOT contained in the other bit set.
In other words, return a new bit set, which is a bitwise and with the bitwise not of the other bit set. |
int |
cardinality()
|
void |
clearAll()
Clear all bits to 0. |
int |
currentCapacity()
|
static ThreadSafeBitSet |
deserializeFrom(java.io.DataInputStream dis)
Deserialize a ThreadSafeBitSet from an InputStream |
boolean |
get(int position)
|
static ThreadSafeBitSet |
orAll(ThreadSafeBitSet... bitSets)
Return a new bit set which contains all bits which are contained in *any* of the specified bit sets. |
void |
serializeTo(java.io.DataOutputStream os)
Serialize this ThreadSafeBitSet to an OutputStream |
void |
set(int position)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadSafeBitSet()
public ThreadSafeBitSet(int log2SegmentSizeInBits)
Method Detail |
---|
public void set(int position)
public boolean get(int position)
public int cardinality()
public int currentCapacity()
public void clearAll()
public ThreadSafeBitSet andNot(ThreadSafeBitSet other)
other
bit set.
In other words, return a new bit set, which is a bitwise and with the bitwise not of the other bit set.
other
-
public static ThreadSafeBitSet orAll(ThreadSafeBitSet... bitSets)
bitSets
-
public void serializeTo(java.io.DataOutputStream os) throws java.io.IOException
java.io.IOException
public static ThreadSafeBitSet deserializeFrom(java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |