Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
35 static const uint8_t BYTE_COUNTS[];
42 void set(int32_t bit);
51 bool get(int32_t bit);
void writeBits(const IndexOutputPtr &output)
Write as a bit set.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
bool getAndSet(int32_t bit)
Sets the value of bit to true, and returns true if bit was already set.
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
void write(const DirectoryPtr &d, const String &name)
Writes this vector to the file name in Directory d, in a format that can be read by the constructor B...
Optimized implementation of a vector of bits.
Definition: BitVector.h:15
bool get(int32_t bit)
Returns true if bit is one and false if it is zero.
boost::shared_ptr< BitVector > BitVectorPtr
Definition: LuceneTypes.h:523
BitVectorPtr subset(int32_t start, int32_t end)
Retrieve a subset of this BitVector.
void readBits(const IndexInputPtr &input)
Read as a bit set.
Definition: AbstractAllTermDocs.h:12
int32_t _count
Definition: BitVector.h:33
int32_t size()
Returns the number of bits in this vector. This is also one greater than the number of the largest va...
Base class for all Lucene classes.
Definition: LuceneObject.h:31
void readDgaps(const IndexInputPtr &input)
Read as a d-gaps list.
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
void writeDgaps(const IndexOutputPtr &output)
Write as a d-gaps list.
bool isSparse()
Indicates if the bit vector is sparse and should be saved as a d-gaps list, or dense,...
int32_t getRecomputedCount()
For testing.
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
int32_t count()
Returns the total number of one bits in this vector. This is efficiently computed and cached,...
BitVector(ByteArray bits, int32_t size)
int32_t _size
Definition: BitVector.h:32
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Clone this vector.
BitVector(int32_t n=0)
Constructs a vector capable of holding n bits.
ByteArray bits
Definition: BitVector.h:28
void set(int32_t bit)
Sets the value of bit to one.
BitVector(const DirectoryPtr &d, const String &name)
Constructs a bit vector from the file name in Directory d, as written by the write method.
void clear(int32_t bit)
Sets the value of bit to zero.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net