The OpenBitSet type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| OpenBitSet()()()() | Initializes a new instance of the OpenBitSet class | |
| OpenBitSet(Int64) | Constructs an OpenBitSet large enough to hold numBits.
| |
| OpenBitSet(array<Int64>[]()[][], Int32) | Constructs an OpenBitSet from an existing long[].
The first 64 bits are in long[0], with bit index 0 at the least significant bit, and bit index 63 at the most significant. Given a bit index, the word containing it is long[index/64], and it is at bit number index%64 within that word. numWords are the number of elements in the array that contain set bits (non-zero longs). numWords should be <= bits.length, and any existing words in the array at position >= numWords should be zero. |
Methods
| Name | Description | |
|---|---|---|
| And | ||
| AndNot | ||
| AndNotCount | Returns the popcount or cardinality of "a and not b"
or "intersection(a, not(b))".
Neither set is modified.
| |
| Bits2words | returns the number of 64 bit words it would take to hold numBits | |
| Capacity | Returns the current capacity in bits (1 greater than the index of the last bit) | |
| Cardinality | ||
| Clear(Int64) | clears a bit, allowing access beyond the current set size without changing the size. | |
| Clear(Int32, Int32) | Clears a range of bits. Clearing past the end does not change the size of the set.
| |
| Clear(Int64, Int64) | Clears a range of bits. Clearing past the end does not change the size of the set.
| |
| Clone | ||
| EnsureCapacity | Ensure that the long[] is big enough to hold numBits, expanding it if necessary.
getNumWords() is unchanged by this call.
| |
| EnsureCapacityWords | Expand the long[] with the size given as a number of words (64 bit longs).
getNumWords() is unchanged by this call.
| |
| Equals | returns true if both sets have the same bits set (Overrides Object..::..Equals(Object).) | |
| ExpandingWordNum | ||
| FastClear(Int32) | clears a bit.
The index should be less than the OpenBitSet size.
| |
| FastClear(Int64) | clears a bit.
The index should be less than the OpenBitSet size.
| |
| FastFlip(Int32) | flips a bit.
The index should be less than the OpenBitSet size.
| |
| FastFlip(Int64) | flips a bit.
The index should be less than the OpenBitSet size.
| |
| FastGet(Int32) | Returns true or false for the specified bit index.
The index should be less than the OpenBitSet size
| |
| FastGet(Int64) | Returns true or false for the specified bit index.
The index should be less than the OpenBitSet size.
| |
| FastSet(Int32) | Sets the bit at the specified index.
The index should be less than the OpenBitSet size.
| |
| FastSet(Int64) | Sets the bit at the specified index.
The index should be less than the OpenBitSet size.
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| Flip(Int64) | flips a bit, expanding the set size if necessary | |
| Flip(Int64, Int64) | Flips a range of bits, expanding the set size if necessary
| |
| FlipAndGet(Int32) | flips a bit and returns the resulting bit value.
The index should be less than the OpenBitSet size.
| |
| FlipAndGet(Int64) | flips a bit and returns the resulting bit value.
The index should be less than the OpenBitSet size.
| |
| Get(Int32) | Returns true or false for the specified bit index. | |
| Get(Int64) | Returns true or false for the specified bit index | |
| GetAndSet(Int32) | Sets a bit and returns the previous value.
The index should be less than the OpenBitSet size.
| |
| GetAndSet(Int64) | Sets a bit and returns the previous value.
The index should be less than the OpenBitSet size.
| |
| GetBit | returns 1 if the bit is set, 0 if not.
The index should be less than the OpenBitSet size
| |
| GetBits | Expert: returns the long[] storing the bits | |
| GetHashCode | (Overrides Object..::..GetHashCode()()()().) | |
| GetNumWords | Expert: gets the number of longs in the array that are in use | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Intersect | this = this AND other | |
| IntersectionCount | Returns the popcount or cardinality of the intersection of the two sets.
Neither set is modified.
| |
| Intersects | returns true if the sets have any elements in common | |
| IsCacheable | This DocIdSet implementation is cacheable. (Overrides DocIdSet..::..IsCacheable()()()().) | |
| IsEmpty | Returns true if there are no set bits | |
| Iterator | (Overrides DocIdSet..::..Iterator()()()().) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| NextSetBit(Int32) | Returns the index of the first set bit starting at the index specified.
-1 is returned if there are no more set bits.
| |
| NextSetBit(Int64) | Returns the index of the first set bit starting at the index specified.
-1 is returned if there are no more set bits.
| |
| Or | ||
| Remove | Remove all elements set in other. this = this AND_NOT other | |
| Set(Int64) | sets a bit, expanding the set size if necessary | |
| Set(Int64, Int64) | Sets a range of bits, expanding the set size if necessary
| |
| SetBits | Expert: sets a new long[] to use as the bit storage | |
| SetNumWords | Expert: sets the number of longs in the array that are in use | |
| Size | Returns the current capacity of this set. Included for
compatibility. This is *not* equal to {@link #cardinality}
| |
| ToString | (Inherited from Object.) | |
| TrimTrailingZeros | Lowers numWords, the number of words in use,
by checking for trailing zero words.
| |
| Union | this = this OR other | |
| UnionCount | Returns the popcount or cardinality of the union of the two sets.
Neither set is modified.
| |
| Xor | this = this XOR other | |
| XorCount | Returns the popcount or cardinality of the exclusive-or of the two sets.
Neither set is modified.
|