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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
12 namespace Lucene {
13 
16 public:
17  DefaultSkipListReader(const IndexInputPtr& skipStream, int32_t maxSkipLevels, int32_t skipInterval);
18  virtual ~DefaultSkipListReader();
19 
21 
22 protected:
27 
28  int64_t lastFreqPointer;
29  int64_t lastProxPointer;
31 
32 public:
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 
45  int32_t getPayloadLength();
46 
47 protected:
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

clucene.sourceforge.net