7 #ifndef DEFAULTSKIPLISTWRITER_H
8 #define DEFAULTSKIPLISTWRITER_H
42 void setSkipData(int32_t doc,
bool storePayloads, int32_t payloadLength);
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Implements the skip list writer for the default posting list format that stores positions and payload...
Definition: DefaultSkipListWriter.h:15
IndexOutputPtr freqOutput
Definition: DefaultSkipListWriter.h:28
int32_t curDoc
Definition: DefaultSkipListWriter.h:31
Collection< int64_t > lastSkipFreqPointer
Definition: DefaultSkipListWriter.h:25
Collection< int32_t > lastSkipDoc
Definition: DefaultSkipListWriter.h:20
virtual ~DefaultSkipListWriter()
DefaultSkipListWriter(int32_t skipInterval, int32_t numberOfSkipLevels, int32_t docCount, const IndexOutputPtr &freqOutput, const IndexOutputPtr &proxOutput)
IndexOutputPtr proxOutput
Definition: DefaultSkipListWriter.h:29
bool curStorePayloads
Definition: DefaultSkipListWriter.h:32
int32_t curPayloadLength
Definition: DefaultSkipListWriter.h:33
int64_t curFreqPointer
Definition: DefaultSkipListWriter.h:34
void setSkipData(int32_t doc, bool storePayloads, int32_t payloadLength)
Sets the values for the current skip data.
int64_t curProxPointer
Definition: DefaultSkipListWriter.h:35
Collection< int32_t > lastSkipPayloadLength
Definition: DefaultSkipListWriter.h:24
void setProxOutput(const IndexOutputPtr &proxOutput)
virtual void writeSkipData(int32_t level, const IndexOutputPtr &skipBuffer)
Subclasses must implement the actual skip data encoding in this method.
void setFreqOutput(const IndexOutputPtr &freqOutput)
Collection< int64_t > lastSkipProxPointer
Definition: DefaultSkipListWriter.h:26
Definition: FormatPostingsTermsWriter.h:14
This abstract class writes skip lists with multiple levels.
Definition: MultiLevelSkipListWriter.h:36
int32_t skipInterval
the skip interval in the list with level = 0
Definition: MultiLevelSkipListWriter.h:48
Collection< RAMOutputStreamPtr > skipBuffer
for every skip level a different buffer is used
Definition: MultiLevelSkipListWriter.h:51
int32_t numberOfSkipLevels
number of levels in this skip list
Definition: MultiLevelSkipListWriter.h:41
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494