C# 클래스 Lucene.Net.Util.LongBitSet

BitSet of fixed length (numBits), backed by accessible (#getBits) long[], accessed with a long index. Use it only if you intend to store more than 2.1B bits, otherwise you should use FixedBitSet. @lucene.internal
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
And ( LongBitSet other ) : void

this = this AND other

AndNot ( LongBitSet other ) : void

this = this AND NOT other

Bits2words ( long numBits ) : int

returns the number of 64 bit words it would take to hold numBits

Cardinality ( ) : long

Returns number of set bits. NOTE: this visits every long in the backing bits array, and the result is not internally cached!

Clear ( long index ) : void
Clear ( long startIndex, long endIndex ) : void

Clears a range of bits.

Clone ( ) : LongBitSet
EnsureCapacity ( LongBitSet bits, long numBits ) : LongBitSet

If the given LongBitSet is large enough to hold {@code numBits}, returns the given bits, otherwise returns a new LongBitSet 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

Flip ( long startIndex, long endIndex ) : void

Flips a range of bits

Get ( long index ) : bool
GetAndClear ( long index ) : bool
GetAndSet ( long index ) : bool
GetHashCode ( ) : int
Intersects ( LongBitSet other ) : bool

returns true if the sets have any elements in common

Length ( ) : long

Returns the number of bits stored in this bitset.

LongBitSet ( long numBits ) : Lucene.Net.Support
LongBitSet ( long storedBits, long numBits ) : Lucene.Net.Support
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.

Or ( LongBitSet other ) : void

this = this OR other

PrevSetBit ( long index ) : long

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 ( long index ) : void
Set ( long startIndex, long endIndex ) : void

Sets a range of bits

Xor ( LongBitSet other ) : void

this = this XOR other

메소드 상세

And() 공개 메소드

this = this AND other
public And ( LongBitSet other ) : void
other LongBitSet
리턴 void

AndNot() 공개 메소드

this = this AND NOT other
public AndNot ( LongBitSet other ) : void
other LongBitSet
리턴 void

Bits2words() 공개 정적인 메소드

returns the number of 64 bit words it would take to hold numBits
public static Bits2words ( long numBits ) : int
numBits long
리턴 int

Cardinality() 공개 메소드

Returns number of set bits. NOTE: this visits every long in the backing bits array, and the result is not internally cached!
public Cardinality ( ) : long
리턴 long

Clear() 공개 메소드

public Clear ( long index ) : void
index long
리턴 void

Clear() 공개 메소드

Clears a range of bits.
public Clear ( long startIndex, long endIndex ) : void
startIndex long lower index
endIndex long one-past the last bit to clear
리턴 void

Clone() 공개 메소드

public Clone ( ) : LongBitSet
리턴 LongBitSet

EnsureCapacity() 공개 정적인 메소드

If the given LongBitSet is large enough to hold {@code numBits}, returns the given bits, otherwise returns a new LongBitSet 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}.

public static EnsureCapacity ( LongBitSet bits, long numBits ) : LongBitSet
bits LongBitSet
numBits long
리턴 LongBitSet

Equals() 공개 메소드

returns true if both sets have the same bits set
public Equals ( object o ) : bool
o object
리턴 bool

Flip() 공개 메소드

Flips a range of bits
public Flip ( long startIndex, long endIndex ) : void
startIndex long lower index
endIndex long one-past the last bit to flip
리턴 void

Get() 공개 메소드

public Get ( long index ) : bool
index long
리턴 bool

GetAndClear() 공개 메소드

public GetAndClear ( long index ) : bool
index long
리턴 bool

GetAndSet() 공개 메소드

public GetAndSet ( long index ) : bool
index long
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Intersects() 공개 메소드

returns true if the sets have any elements in common
public Intersects ( LongBitSet other ) : bool
other LongBitSet
리턴 bool

Length() 공개 메소드

Returns the number of bits stored in this bitset.
public Length ( ) : long
리턴 long

LongBitSet() 공개 메소드

public LongBitSet ( long numBits ) : Lucene.Net.Support
numBits long
리턴 Lucene.Net.Support

LongBitSet() 공개 메소드

public LongBitSet ( long storedBits, long numBits ) : Lucene.Net.Support
storedBits long
numBits long
리턴 Lucene.Net.Support

NextSetBit() 공개 메소드

Returns the index of the first set bit starting at the index specified. -1 is returned if there are no more set bits.
public NextSetBit ( long index ) : long
index long
리턴 long

Or() 공개 메소드

this = this OR other
public Or ( LongBitSet other ) : void
other LongBitSet
리턴 void

PrevSetBit() 공개 메소드

Returns the index of the last set bit before or on the index specified. -1 is returned if there are no more set bits.
public PrevSetBit ( long index ) : long
index long
리턴 long

Set() 공개 메소드

public Set ( long index ) : void
index long
리턴 void

Set() 공개 메소드

Sets a range of bits
public Set ( long startIndex, long endIndex ) : void
startIndex long lower index
endIndex long one-past the last bit to set
리턴 void

Xor() 공개 메소드

this = this XOR other
public Xor ( LongBitSet other ) : void
other LongBitSet
리턴 void