Property | Type | Description | |
---|---|---|---|
internalbits | long[] | ||
wlen | int |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
And ( |
||
AndNot ( |
||
AndNotCount ( |
Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified.
|
|
Bits2words ( long numBits ) : int |
returns the number of 64 bit words it would take to hold numBits
|
|
Capacity ( ) : long |
Returns the current capacity in bits (1 greater than the index of the last bit)
|
|
Cardinality ( ) : long | ||
Clear ( int startIndex, int endIndex ) : void |
Clears a range of bits. Clearing past the end does not change the size of the set.
|
|
Clear ( long index ) : void |
clears a bit, allowing access beyond the current set size without changing the size.
|
|
Clear ( long startIndex, long endIndex ) : void |
Clears a range of bits. Clearing past the end does not change the size of the set.
|
|
Clone ( ) : |
||
EnsureCapacity ( long numBits ) : void |
Ensure that the long[] is big enough to hold numBits, expanding it if necessary. getNumWords() is unchanged by this call.
|
|
EnsureCapacityWords ( int numWords ) : void |
Expand the long[] with the size given as a number of words (64 bit longs). getNumWords() is unchanged by this call.
|
|
Equals ( System o ) : bool |
returns true if both sets have the same bits set
|
|
FastClear ( int index ) : void |
clears a bit. The index should be less than the OpenBitSet size.
|
|
FastClear ( long index ) : void |
clears a bit. The index should be less than the OpenBitSet size.
|
|
FastFlip ( int index ) : void |
flips a bit. The index should be less than the OpenBitSet size.
|
|
FastFlip ( long index ) : void |
flips a bit. The index should be less than the OpenBitSet size.
|
|
FastGet ( int index ) : bool |
Returns true or false for the specified bit index. The index should be less than the OpenBitSet size
|
|
FastGet ( long index ) : bool |
Returns true or false for the specified bit index. The index should be less than the OpenBitSet size.
|
|
FastSet ( int index ) : void |
Sets the bit at the specified index. The index should be less than the OpenBitSet size.
|
|
FastSet ( long index ) : void |
Sets the bit at the specified index. The index should be less than the OpenBitSet size.
|
|
Flip ( long index ) : void |
flips a bit, expanding the set size if necessary
|
|
Flip ( long startIndex, long endIndex ) : void |
Flips a range of bits, expanding the set size if necessary
|
|
FlipAndGet ( int index ) : bool |
flips a bit and returns the resulting bit value. The index should be less than the OpenBitSet size.
|
|
FlipAndGet ( long index ) : bool |
flips a bit and returns the resulting bit value. The index should be less than the OpenBitSet size.
|
|
Get ( int index ) : bool |
Returns true or false for the specified bit index.
|
|
Get ( long index ) : bool |
Returns true or false for the specified bit index
|
|
GetAndSet ( int index ) : bool |
Sets a bit and returns the previous value. The index should be less than the OpenBitSet size.
|
|
GetAndSet ( long index ) : bool |
Sets a bit and returns the previous value. The index should be less than the OpenBitSet size.
|
|
GetBit ( int index ) : int |
returns 1 if the bit is set, 0 if not. The index should be less than the OpenBitSet size
|
|
GetHashCode ( ) : int | ||
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
|
|
IsEmpty ( ) : bool |
Returns true if there are no set bits
|
|
Iterator ( ) : Lucene.Net.Search.DocIdSetIterator | ||
NextSetBit ( int index ) : int |
Returns the index of the first set bit starting at the index specified. -1 is returned if there are no more set bits.
|
|
NextSetBit ( long index ) : long |
Returns the index of the first set bit starting at the index specified. -1 is returned if there are no more set bits.
|
|
OpenBitSet ( ) : System | ||
OpenBitSet ( long numBits ) : System |
Constructs an OpenBitSet large enough to hold numBits.
|
|
OpenBitSet ( long bits, int numWords ) : System |
Constructs an OpenBitSet from an existing long[]. 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.
|
|
Or ( OpenBitSet other ) : void | ||
Remove ( OpenBitSet other ) : void |
Remove all elements set in other. this = this AND_NOT other
|
|
Set ( long index ) : void |
sets a bit, expanding the set size if necessary
|
|
Set ( long startIndex, long endIndex ) : void |
Sets a range of bits, expanding the set size if necessary
|
|
Size ( ) : long |
Returns the current capacity of this set. Included for compatibility. This is *not* equal to Cardinality
|
|
TrimTrailingZeros ( ) : void |
Lowers numWords, the number of words in use, by checking for trailing zero words.
|
|
Union ( OpenBitSet other ) : void |
this = this OR other
|
|
UnionCount ( OpenBitSet a, OpenBitSet b ) : long |
Returns the popcount or cardinality of the union of the two sets. Neither set is modified.
|
|
Xor ( OpenBitSet other ) : void |
this = this XOR other
|
|
XorCount ( OpenBitSet a, OpenBitSet b ) : long |
Returns the popcount or cardinality of the exclusive-or of the two sets. Neither set is modified.
|
Method | Description | |
---|---|---|
ExpandingWordNum ( long index ) : int |
public static AndNotCount ( |
||
a | ||
b | ||
return | long |
public static Bits2words ( long numBits ) : int | ||
numBits | long | |
return | int |
public Clear ( int startIndex, int endIndex ) : void | ||
startIndex | int | lower index /// |
endIndex | int | one-past the last bit to clear /// |
return | void |
public Clear ( long startIndex, long endIndex ) : void | ||
startIndex | long | lower index /// |
endIndex | long | one-past the last bit to clear /// |
return | void |
public EnsureCapacity ( long numBits ) : void | ||
numBits | long | |
return | void |
public EnsureCapacityWords ( int numWords ) : void | ||
numWords | int | |
return | void |
protected ExpandingWordNum ( long index ) : int | ||
index | long | |
return | int |
public Flip ( long startIndex, long endIndex ) : void | ||
startIndex | long | lower index /// |
endIndex | long | one-past the last bit to flip /// |
return | void |
public static IntersectionCount ( |
||
a | ||
b | ||
return | long |
public Intersects ( |
||
other | ||
return | bool |
public Iterator ( ) : Lucene.Net.Search.DocIdSetIterator | ||
return | Lucene.Net.Search.DocIdSetIterator |
public OpenBitSet ( long numBits ) : System | ||
numBits | long | /// |
return | System |
public OpenBitSet ( long bits, int numWords ) : System | ||
bits | long | |
numWords | int | |
return | System |
public Set ( long startIndex, long endIndex ) : void | ||
startIndex | long | lower index /// |
endIndex | long | one-past the last bit to set /// |
return | void |
public static UnionCount ( OpenBitSet a, OpenBitSet b ) : long | ||
a | OpenBitSet | |
b | OpenBitSet | |
return | long |
public static XorCount ( OpenBitSet a, OpenBitSet b ) : long | ||
a | OpenBitSet | |
b | OpenBitSet | |
return | long |