Méthode | Description | |
---|---|---|
And ( DocIdSetIterator iter ) : void |
Does in-place AND of the bits provided by the iterator.
|
|
And ( |
this = this AND other
|
|
AndNot ( DocIdSetIterator iter ) : void |
Does in-place AND NOT of the bits provided by the iterator.
|
|
AndNot ( |
this = this AND NOT other
|
|
AndNotCount ( |
Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified.
|
|
Bits2words ( int numBits ) : int |
returns the number of 64 bit words it would take to hold numBits
|
|
Cardinality ( ) : int |
Returns number of set bits. NOTE: this visits every long in the backing bits array, and the result is not internally cached!
|
|
Clear ( int index ) : void | ||
Clear ( int startIndex, int endIndex ) : void |
Clears a range of bits.
|
|
Clone ( ) : |
||
EnsureCapacity ( |
If the given FixedBitSet is large enough to hold {@code numBits}, returns the given bits, otherwise returns a new FixedBitSet which can hold the requested number of bits. NOTE: the returned bitset reuses the underlying {@code long[]} of the given {@code bits} if possible. Also, calling #length() on the returned bits may return a value greater than {@code numBits}.
|
|
Equals ( object o ) : bool |
returns true if both sets have the same bits set
|
|
FixedBitSet ( int numBits ) : System | ||
FixedBitSet ( long storedBits, int numBits ) : System | ||
Flip ( int startIndex, int endIndex ) : void |
Flips a range of bits
|
|
Get ( int index ) : bool | ||
GetAndClear ( int index ) : bool | ||
GetAndSet ( int index ) : bool | ||
GetBits ( ) : Bits | ||
GetHashCode ( ) : int | ||
GetIterator ( ) : DocIdSetIterator | ||
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
|
|
Length ( ) : int | ||
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.
|
|
Or ( DocIdSetIterator iter ) : void |
Does in-place OR of the bits provided by the iterator.
|
|
Or ( |
this = this OR other
|
|
PrevSetBit ( int index ) : int |
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 ( int index ) : void | ||
Set ( int startIndex, int endIndex ) : void |
Sets a range of bits
|
|
UnionCount ( |
Returns the popcount or cardinality of the union of the two sets. Neither set is modified.
|
|
Xor ( DocIdSetIterator iter ) : void |
Does in-place XOR of the bits provided by the iterator.
|
|
Xor ( |
this = this XOR other
|
Méthode | Description | |
---|---|---|
And ( long otherArr, int otherNumWords ) : void | ||
AndNot ( long otherArr, int otherNumWords ) : void | ||
Or ( long otherArr, int otherNumWords ) : void |
public And ( DocIdSetIterator iter ) : void | ||
iter | DocIdSetIterator | |
Résultat | void |
public AndNot ( DocIdSetIterator iter ) : void | ||
iter | DocIdSetIterator | |
Résultat | void |
public static AndNotCount ( |
||
a | ||
b | ||
Résultat | long |
public static Bits2words ( int numBits ) : int | ||
numBits | int | |
Résultat | int |
public Clear ( int startIndex, int endIndex ) : void | ||
startIndex | int | lower index |
endIndex | int | one-past the last bit to clear |
Résultat | void |
public static EnsureCapacity ( |
||
bits | ||
numBits | int | |
Résultat |
public FixedBitSet ( int numBits ) : System | ||
numBits | int | |
Résultat | System |
public FixedBitSet ( long storedBits, int numBits ) : System | ||
storedBits | long | |
numBits | int | |
Résultat | System |
public Flip ( int startIndex, int endIndex ) : void | ||
startIndex | int | lower index |
endIndex | int | one-past the last bit to flip |
Résultat | void |
public static IntersectionCount ( |
||
a | ||
b | ||
Résultat | long |
public Intersects ( |
||
other | ||
Résultat | bool |
public Set ( int startIndex, int endIndex ) : void | ||
startIndex | int | lower index |
endIndex | int | one-past the last bit to set |
Résultat | void |
public static UnionCount ( |
||
a | ||
b | ||
Résultat | long |
public Xor ( DocIdSetIterator iter ) : void | ||
iter | DocIdSetIterator | |
Résultat | void |