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 // 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:
20  virtual ~MultipleTermPositions();
21 
23 
24  protected:
25  int32_t _doc;
26  int32_t _freq;
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