Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef MULTILEVELSKIPLISTWRITER_H
8 #define MULTILEVELSKIPLISTWRITER_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Collection< RAMOutputStreamPtr > skipBuffer
for every skip level a different buffer is used
Definition: MultiLevelSkipListWriter.h:51
virtual void writeSkipData(int32_t level, const IndexOutputPtr &skipBuffer)=0
Subclasses must implement the actual skip data encoding in this method.
virtual ~MultiLevelSkipListWriter()
Definition: AbstractAllTermDocs.h:12
Base class for all Lucene classes.
Definition: LuceneObject.h:31
This abstract class writes skip lists with multiple levels.
Definition: MultiLevelSkipListWriter.h:36
MultiLevelSkipListWriter(int32_t skipInterval, int32_t maxSkipLevels, int32_t df)
void bufferSkip(int32_t df)
Writes the current skip data to the buffers. The current document frequency determines the max level ...
int32_t skipInterval
the skip interval in the list with level = 0
Definition: MultiLevelSkipListWriter.h:48
int64_t writeSkip(const IndexOutputPtr &output)
Writes the buffered skip lists to the given output.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
int32_t numberOfSkipLevels
number of levels in this skip list
Definition: MultiLevelSkipListWriter.h:41
clucene.sourceforge.net