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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermPositions.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 TERMPOSITIONS_H
8 #define TERMPOSITIONS_H
9 
10 #include "TermDocs.h"
11 
12 namespace Lucene
13 {
18  class LPPAPI TermPositions : public TermDocs
19  {
20  protected:
21  TermPositions();
22 
23  public:
24  virtual ~TermPositions();
26 
27  public:
30  // the first time.
31  virtual int32_t nextPosition();
32 
36  virtual int32_t getPayloadLength();
37 
46  virtual ByteArray getPayload(ByteArray data, int32_t offset);
47 
51  virtual bool isPayloadAvailable();
52  };
53 }
54 
55 #endif

clucene.sourceforge.net