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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MultipleTermPositions.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 {
18 public:
19 MultipleTermPositions(IndexReaderPtr indexReader, Collection<TermPtr> terms);
20 virtual ~MultipleTermPositions();
21
22 LUCENE_CLASS(MultipleTermPositions);
23
24 protected:
25 int32_t _doc;
26 int32_t _freq;
27 TermPositionsQueuePtr termPositionsQueue;
28 IntQueuePtr posList;
29
30 public:
31 virtual bool next();
32 virtual int32_t nextPosition();
33 virtual bool skipTo(int32_t target);
34 virtual int32_t doc();
35 virtual int32_t freq();
36 virtual void close();
37
39 virtual void seek(TermPtr term);
40
42 virtual void seek(TermEnumPtr termEnum);
43
45 virtual int32_t read(Collection<int32_t> docs, Collection<int32_t> freqs);
46
48 virtual ByteArray getPayload(ByteArray data, int32_t offset);
49
51 virtual bool isPayloadAvailable();
52 };
53 }
54
55 #endif

clucene.sourceforge.net