Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Lucene.Net.Util.OpenBitSetDISI Class Reference

Inherits Lucene.Net.Util.OpenBitSet.

Public Member Functions

 OpenBitSetDISI (DocIdSetIterator disi, int maxSize)
 Construct an OpenBitSetDISI with its bits set from the doc ids of the given DocIdSetIterator. Also give a maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.
 
 OpenBitSetDISI (int maxSize)
 Construct an OpenBitSetDISI with no bits set, and a given maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.
 
virtual void InPlaceOr (DocIdSetIterator disi)
 Perform an inplace OR with the doc ids from a given DocIdSetIterator, setting the bit for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
 
virtual void InPlaceAnd (DocIdSetIterator disi)
 Perform an inplace AND with the doc ids from a given DocIdSetIterator, leaving only the bits set for which the doc ids are in common. These doc ids should be smaller than the maximum size passed to the constructor.
 
virtual void InPlaceNot (DocIdSetIterator disi)
 Perform an inplace NOT with the doc ids from a given DocIdSetIterator, clearing all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
 
virtual void InPlaceXor (DocIdSetIterator disi)
 Perform an inplace XOR with the doc ids from a given DocIdSetIterator, flipping all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.
 
- Public Member Functions inherited from Lucene.Net.Util.OpenBitSet
 OpenBitSet (long numBits)
 Constructs an OpenBitSet large enough to hold numBits.
 
 OpenBitSet ()
 
 OpenBitSet (long[] bits, int numWords)
 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.
 
override DocIdSetIterator Iterator ()
 
virtual long Capacity ()
 Returns the current capacity in bits (1 greater than the index of the last bit)
 
virtual long Size ()
 Returns the current capacity of this set. Included for compatibility. This is not equal to Cardinality
 
virtual bool IsEmpty ()
 Returns true if there are no set bits
 
virtual bool Get (int index)
 Returns true or false for the specified bit index.
 
virtual bool FastGet (int index)
 Returns true or false for the specified bit index. The index should be less than the OpenBitSet size
 
virtual bool Get (long index)
 Returns true or false for the specified bit index
 
virtual bool FastGet (long index)
 Returns true or false for the specified bit index. The index should be less than the OpenBitSet size.
 
virtual int GetBit (int index)
 returns 1 if the bit is set, 0 if not. The index should be less than the OpenBitSet size
 
virtual void Set (long index)
 sets a bit, expanding the set size if necessary
 
virtual void FastSet (int index)
 Sets the bit at the specified index. The index should be less than the OpenBitSet size.
 
virtual void FastSet (long index)
 Sets the bit at the specified index. The index should be less than the OpenBitSet size.
 
virtual void Set (long startIndex, long endIndex)
 Sets a range of bits, expanding the set size if necessary
 
virtual void FastClear (int index)
 clears a bit. The index should be less than the OpenBitSet size.
 
virtual void FastClear (long index)
 clears a bit. The index should be less than the OpenBitSet size.
 
virtual void Clear (long index)
 clears a bit, allowing access beyond the current set size without changing the size.
 
virtual void Clear (int startIndex, int endIndex)
 Clears a range of bits. Clearing past the end does not change the size of the set.
 
virtual void Clear (long startIndex, long endIndex)
 Clears a range of bits. Clearing past the end does not change the size of the set.
 
virtual bool GetAndSet (int index)
 Sets a bit and returns the previous value. The index should be less than the OpenBitSet size.
 
virtual bool GetAndSet (long index)
 Sets a bit and returns the previous value. The index should be less than the OpenBitSet size.
 
virtual void FastFlip (int index)
 flips a bit. The index should be less than the OpenBitSet size.
 
virtual void FastFlip (long index)
 flips a bit. The index should be less than the OpenBitSet size.
 
virtual void Flip (long index)
 flips a bit, expanding the set size if necessary
 
virtual bool FlipAndGet (int index)
 flips a bit and returns the resulting bit value. The index should be less than the OpenBitSet size.
 
virtual bool FlipAndGet (long index)
 flips a bit and returns the resulting bit value. The index should be less than the OpenBitSet size.
 
virtual void Flip (long startIndex, long endIndex)
 Flips a range of bits, expanding the set size if necessary
 
virtual long Cardinality ()
 
virtual int NextSetBit (int index)
 Returns the index of the first set bit starting at the index specified. -1 is returned if there are no more set bits.
 
virtual long NextSetBit (long index)
 Returns the index of the first set bit starting at the index specified. -1 is returned if there are no more set bits.
 
virtual System.Object Clone ()
 
virtual void Intersect (OpenBitSet other)
 this = this AND other
 
virtual void Union (OpenBitSet other)
 this = this OR other
 
virtual void Remove (OpenBitSet other)
 Remove all elements set in other. this = this AND_NOT other
 
virtual void Xor (OpenBitSet other)
 this = this XOR other
 
virtual void And (OpenBitSet other)
 
virtual void Or (OpenBitSet other)
 
virtual void AndNot (OpenBitSet other)
 
virtual bool Intersects (OpenBitSet other)
 returns true if the sets have any elements in common
 
virtual void EnsureCapacityWords (int numWords)
 Expand the long[] with the size given as a number of words (64 bit longs). getNumWords() is unchanged by this call.
 
virtual void EnsureCapacity (long numBits)
 Ensure that the long[] is big enough to hold numBits, expanding it if necessary. getNumWords() is unchanged by this call.
 
virtual void TrimTrailingZeros ()
 Lowers numWords, the number of words in use, by checking for trailing zero words.
 
override bool Equals (System.Object o)
 returns true if both sets have the same bits set
 
override int GetHashCode ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Lucene.Net.Util.OpenBitSet
static long IntersectionCount (OpenBitSet a, OpenBitSet b)
 Returns the popcount or cardinality of the intersection of the two sets. Neither set is modified.
 
static long UnionCount (OpenBitSet a, OpenBitSet b)
 Returns the popcount or cardinality of the union of the two sets. Neither set is modified.
 
static long AndNotCount (OpenBitSet a, OpenBitSet b)
 Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified.
 
static long XorCount (OpenBitSet a, OpenBitSet b)
 Returns the popcount or cardinality of the exclusive-or of the two sets. Neither set is modified.
 
static int Bits2words (long numBits)
 returns the number of 64 bit words it would take to hold numBits
 
- Properties inherited from Lucene.Net.Util.OpenBitSet
override bool IsCacheable [get]
 This DocIdSet implementation is cacheable.
 
virtual long[] Bits [get, set]
 Expert: Gets or sets the long[] storing the bits
 
virtual int NumWords [get, set]
 Expert: gets or sets the number of longs in the array that are in use
 

Detailed Description

Definition at line 26 of file OpenBitSetDISI.cs.

Constructor & Destructor Documentation

Lucene.Net.Util.OpenBitSetDISI.OpenBitSetDISI ( DocIdSetIterator  disi,
int  maxSize 
)

Construct an OpenBitSetDISI with its bits set from the doc ids of the given DocIdSetIterator. Also give a maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.

Definition at line 34 of file OpenBitSetDISI.cs.

Lucene.Net.Util.OpenBitSetDISI.OpenBitSetDISI ( int  maxSize)

Construct an OpenBitSetDISI with no bits set, and a given maximum size one larger than the largest doc id for which a bit may ever be set on this OpenBitSetDISI.

Definition at line 43 of file OpenBitSetDISI.cs.

Member Function Documentation

virtual void Lucene.Net.Util.OpenBitSetDISI.InPlaceAnd ( DocIdSetIterator  disi)
virtual

Perform an inplace AND with the doc ids from a given DocIdSetIterator, leaving only the bits set for which the doc ids are in common. These doc ids should be smaller than the maximum size passed to the constructor.

Definition at line 67 of file OpenBitSetDISI.cs.

virtual void Lucene.Net.Util.OpenBitSetDISI.InPlaceNot ( DocIdSetIterator  disi)
virtual

Perform an inplace NOT with the doc ids from a given DocIdSetIterator, clearing all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.

Definition at line 87 of file OpenBitSetDISI.cs.

virtual void Lucene.Net.Util.OpenBitSetDISI.InPlaceOr ( DocIdSetIterator  disi)
virtual

Perform an inplace OR with the doc ids from a given DocIdSetIterator, setting the bit for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.

Definition at line 52 of file OpenBitSetDISI.cs.

virtual void Lucene.Net.Util.OpenBitSetDISI.InPlaceXor ( DocIdSetIterator  disi)
virtual

Perform an inplace XOR with the doc ids from a given DocIdSetIterator, flipping all the bits for each such doc id. These doc ids should be smaller than the maximum size passed to the constructor.

Definition at line 102 of file OpenBitSetDISI.cs.


The documentation for this class was generated from the following file: