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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MultipleTermPositions.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 MULTIPLETERMPOSITIONS_H
8 #define MULTIPLETERMPOSITIONS_H
9 
10 #include "TermPositions.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI MultipleTermPositions : public TermPositions, public LuceneObject {
17 public:
18  MultipleTermPositions(const IndexReaderPtr& indexReader, Collection<TermPtr> terms);
19  virtual ~MultipleTermPositions();
20 
22 
23 protected:
24  int32_t _doc;
25  int32_t _freq;
28 
29 public:
30  virtual bool next();
31  virtual int32_t nextPosition();
32  virtual bool skipTo(int32_t target);
33  virtual int32_t doc();
34  virtual int32_t freq();
35  virtual void close();
36 
38  virtual void seek(const TermPtr& term);
39 
41  virtual void seek(const TermEnumPtr& termEnum);
42 
44  virtual int32_t read(Collection<int32_t> docs, Collection<int32_t> freqs);
45 
47  virtual ByteArray getPayload(ByteArray data, int32_t offset);
48 
50  virtual bool isPayloadAvailable();
51 };
52 
53 }
54 
55 #endif

clucene.sourceforge.net