Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
DefaultSkipListReader.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef DEFAULTSKIPLISTREADER_H
8#define DEFAULTSKIPLISTREADER_H
9
11
12namespace Lucene {
13
16public:
17 DefaultSkipListReader(const IndexInputPtr& skipStream, int32_t maxSkipLevels, int32_t skipInterval);
19
21
22protected:
27
31
32public:
33 void init(int64_t skipPointer, int64_t freqBasePointer, int64_t proxBasePointer, int32_t df, bool storesPayloads);
34
37 int64_t getFreqPointer();
38
41 int64_t getProxPointer();
42
46
47protected:
49 virtual void seekChild(int32_t level);
50
52 virtual void setLastSkipData(int32_t level);
53
55 virtual int32_t readSkipData(int32_t level, const IndexInputPtr& skipStream);
56};
57
58}
59
60#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Implements the skip list reader for the default posting list format that stores positions and payload...
Definition DefaultSkipListReader.h:15
Collection< int64_t > proxPointer
Definition DefaultSkipListReader.h:25
virtual void setLastSkipData(int32_t level)
Copies the values of the last read skip entry on this level.
int32_t lastPayloadLength
Definition DefaultSkipListReader.h:30
int64_t lastFreqPointer
Definition DefaultSkipListReader.h:28
virtual int32_t readSkipData(int32_t level, const IndexInputPtr &skipStream)
Subclasses must implement the actual skip data encoding in this method.
void init(int64_t skipPointer, int64_t freqBasePointer, int64_t proxBasePointer, int32_t df, bool storesPayloads)
virtual void seekChild(int32_t level)
Seeks the skip entry on the given level.
int32_t getPayloadLength()
Returns the payload length of the payload stored just before the doc to which the last call of MultiL...
int64_t lastProxPointer
Definition DefaultSkipListReader.h:29
bool currentFieldStoresPayloads
Definition DefaultSkipListReader.h:23
int64_t getFreqPointer()
Returns the freq pointer of the doc to which the last call of MultiLevelSkipListReader#skipTo(int) ha...
DefaultSkipListReader(const IndexInputPtr &skipStream, int32_t maxSkipLevels, int32_t skipInterval)
int64_t getProxPointer()
Returns the prox pointer of the doc to which the last call of MultiLevelSkipListReader#skipTo(int) ha...
Collection< int64_t > freqPointer
Definition DefaultSkipListReader.h:24
Collection< int32_t > payloadLength
Definition DefaultSkipListReader.h:26
This abstract class reads skip lists with multiple levels.
Definition MultiLevelSkipListReader.h:20
Collection< int64_t > skipPointer
Definition MultiLevelSkipListReader.h:44
Collection< IndexInputPtr > skipStream
Definition MultiLevelSkipListReader.h:43
Collection< int32_t > skipInterval
Definition MultiLevelSkipListReader.h:45
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< IndexInput > IndexInputPtr
Definition LuceneTypes.h:493

clucene.sourceforge.net