Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Classes | Public Member Functions | Static Public Member Functions | Properties | List of all members
Lucene.Net.Spatial.Util.FixedBitSet Class Reference

Inherits Lucene.Net.Search.DocIdSet, and Lucene.Net.Spatial.Util.IBits.

Classes

class  FixedBitSetIterator
 A FixedBitSet Iterator implementation More...
 

Public Member Functions

 FixedBitSet (int numBits)
 
 FixedBitSet (FixedBitSet other)
 Makes full copy.
 
IBits Bits ()
 
int Length ()
 
int Cardinality ()
 Returns number of set bits. NOTE: this visits every long in the backing bits array, and the result is not internally cached!
 
bool Get (int index)
 
void Set (int index)
 
bool GetAndSet (int index)
 
void Clear (int index)
 
bool GetAndClear (int index)
 
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.
 
int PrevSetBit (int index)
 
void Or (FixedBitSet other)
 
void And (FixedBitSet other)
 
void AndNot (FixedBitSet other)
 
void Set (int startIndex, int endIndex)
 
void Clear (int startIndex, int endIndex)
 
FixedBitSet Clone ()
 
override bool Equals (Object o)
 
override int GetHashCode ()
 
override DocIdSetIterator Iterator ()
 Provides a DocIdSetIterator to access the set. This implementation can return null or EMPTY_DOCIDSET.Iterator() if there are no docs that match.
 

Static Public Member Functions

static int bits2words (int numBits)
 returns the number of 64 bit words it would take to hold numBits
 

Properties

override bool IsCacheable [get]
 
- Properties inherited from Lucene.Net.Search.DocIdSet
virtual bool IsCacheable [get]
 This method is a hint for CachingWrapperFilter, if this DocIdSet should be cached without copying it into a BitSet. The default is to return false. If you have an own DocIdSet implementation that does its iteration very effective and fast without doing disk I/O, override this method and return true.
 

Additional Inherited Members

- Static Public Attributes inherited from Lucene.Net.Search.DocIdSet
static readonly DocIdSet EMPTY_DOCIDSET
 An empty DocIdSet instance for easy use, e.g. in Filters that hit no documents.
 

Detailed Description

Definition at line 34 of file FixedBitSet.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Util.FixedBitSet.FixedBitSet ( int  numBits)

Definition at line 53 of file FixedBitSet.cs.

Lucene.Net.Spatial.Util.FixedBitSet.FixedBitSet ( FixedBitSet  other)

Makes full copy.

Parameters
other

Definition at line 62 of file FixedBitSet.cs.

Member Function Documentation

void Lucene.Net.Spatial.Util.FixedBitSet.And ( FixedBitSet  other)

Definition at line 230 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.AndNot ( FixedBitSet  other)

Definition at line 275 of file FixedBitSet.cs.

IBits Lucene.Net.Spatial.Util.FixedBitSet.Bits ( )

Definition at line 67 of file FixedBitSet.cs.

static int Lucene.Net.Spatial.Util.FixedBitSet.bits2words ( int  numBits)
static

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

Parameters
numBits
Returns

Definition at line 43 of file FixedBitSet.cs.

int Lucene.Net.Spatial.Util.FixedBitSet.Cardinality ( )

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

Returns

Definition at line 88 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.Clear ( int  index)

Definition at line 115 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.Clear ( int  startIndex,
int  endIndex 
)

Definition at line 375 of file FixedBitSet.cs.

FixedBitSet Lucene.Net.Spatial.Util.FixedBitSet.Clone ( )

Definition at line 384 of file FixedBitSet.cs.

override bool Lucene.Net.Spatial.Util.FixedBitSet.Equals ( Object  o)

Definition at line 390 of file FixedBitSet.cs.

bool Lucene.Net.Spatial.Util.FixedBitSet.Get ( int  index)

Implements Lucene.Net.Spatial.Util.IBits.

Definition at line 98 of file FixedBitSet.cs.

bool Lucene.Net.Spatial.Util.FixedBitSet.GetAndClear ( int  index)

Definition at line 120 of file FixedBitSet.cs.

bool Lucene.Net.Spatial.Util.FixedBitSet.GetAndSet ( int  index)

Definition at line 108 of file FixedBitSet.cs.

override int Lucene.Net.Spatial.Util.FixedBitSet.GetHashCode ( )

Definition at line 406 of file FixedBitSet.cs.

override DocIdSetIterator Lucene.Net.Spatial.Util.FixedBitSet.Iterator ( )
virtual

Provides a DocIdSetIterator to access the set. This implementation can return null or EMPTY_DOCIDSET.Iterator() if there are no docs that match.

Implements Lucene.Net.Search.DocIdSet.

Definition at line 411 of file FixedBitSet.cs.

int Lucene.Net.Spatial.Util.FixedBitSet.Length ( )

Implements Lucene.Net.Spatial.Util.IBits.

Definition at line 72 of file FixedBitSet.cs.

int Lucene.Net.Spatial.Util.FixedBitSet.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.

Parameters
index
Returns

Definition at line 133 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.Or ( FixedBitSet  other)

Definition at line 185 of file FixedBitSet.cs.

int Lucene.Net.Spatial.Util.FixedBitSet.PrevSetBit ( int  index)

Definition at line 149 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.Set ( int  index)

Definition at line 103 of file FixedBitSet.cs.

void Lucene.Net.Spatial.Util.FixedBitSet.Set ( int  startIndex,
int  endIndex 
)

Definition at line 338 of file FixedBitSet.cs.

Property Documentation

override bool Lucene.Net.Spatial.Util.FixedBitSet.IsCacheable
get

Definition at line 78 of file FixedBitSet.cs.


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