Class DocIdBitSet
Simple DocIdSet and DocIdSetIterator backed by a BitSet
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class DocIdBitSet : DocIdSet, IBits
Constructors
DocIdBitSet(BitSet)
Simple DocIdSet and DocIdSetIterator backed by a BitSet
Declaration
public DocIdBitSet(BitSet bitSet)
Parameters
Type | Name | Description |
---|---|---|
BitSet | bitSet |
Properties
BitSet
Returns the underlying BitSet.
Declaration
public virtual BitSet BitSet { get; }
Property Value
Type | Description |
---|---|
BitSet |
Bits
Optionally provides a IBits interface for random access to matching documents.
Declaration
public override IBits Bits { get; }
Property Value
Type | Description |
---|---|
IBits |
|
Overrides
IsCacheable
This DocIdSet implementation is cacheable.
Declaration
public override bool IsCacheable { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Length
Returns the number of bits in this set
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Get(int)
Returns the value of the bit with the specified index
.
Declaration
public bool Get(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Index, should be non-negative and < Length. The result of passing negative or out of bounds values is undefined by this interface, just don't do it! |
Returns
Type | Description |
---|---|
bool |
|
GetIterator()
Provides a DocIdSetIterator to access the set.
This implementation can return null
if there
are no docs that match.
Declaration
public override DocIdSetIterator GetIterator()
Returns
Type | Description |
---|---|
DocIdSetIterator |