Class FixedBitSet
BitSet of fixed length (numBits), backed by accessible (GetBits()) long[], accessed with an int index, implementing GetBits() and DocIdSet. If you need to manage more than 2.1B bits, use Int64BitSet.
@lucene.internal
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class FixedBitSet : DocIdSet, IBits
Constructors
Name | Description |
---|---|
FixedBitSet(Int32) | |
FixedBitSet(Int64[], Int32) |
Properties
Name | Description |
---|---|
Bits | |
IsCacheable | This DocIdSet implementation is cacheable. |
Length |
Methods
Name | Description |
---|---|
And(DocIdSetIterator) | Does in-place AND of the bits provided by the iterator. |
And(FixedBitSet) | this = this AND other |
AndNot(DocIdSetIterator) | Does in-place AND NOT of the bits provided by the iterator. |
AndNot(FixedBitSet) | this = this AND NOT other |
AndNotCount(FixedBitSet, FixedBitSet) | Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified. |
Bits2words(Int32) | Returns the number of 64 bit words it would take to hold |
Cardinality() | Returns number of set bits. NOTE: this visits every
|
Clear(Int32) | |
Clear(Int32, Int32) | Clears a range of bits. |
Clone() | |
EnsureCapacity(FixedBitSet, Int32) | If the given FixedBitSet is large enough to hold
NOTE: the returned bitset reuses the underlying long[] of
the given |
Equals(Object) | Returns |
Flip(Int32, Int32) | Flips a range of bits |
Get(Int32) | |
GetAndClear(Int32) | |
GetAndSet(Int32) | |
GetBits() | Expert. |
GetHashCode() | |
GetIterator() | |
IntersectionCount(FixedBitSet, FixedBitSet) | Returns the popcount or cardinality of the intersection of the two sets. Neither set is modified. |
Intersects(FixedBitSet) | Returns true if the sets have any elements in common |
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. |
Or(DocIdSetIterator) | Does in-place OR of the bits provided by the iterator. |
Or(FixedBitSet) | this = this OR other |
PrevSetBit(Int32) | Returns the index of the last set bit before or on the index specified. -1 is returned if there are no more set bits. |
Set(Int32) | |
Set(Int32, Int32) | Sets a range of bits |
UnionCount(FixedBitSet, FixedBitSet) | Returns the popcount or cardinality of the union of the two sets. Neither set is modified. |
Xor(DocIdSetIterator) | Does in-place XOR of the bits provided by the iterator. |
Xor(FixedBitSet) | this = this XOR other |