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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermSpans.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 TERMSPANS_H
8 #define TERMSPANS_H
9 
10 #include "Spans.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI TermSpans : public Spans {
16 public:
17  TermSpans(const TermPositionsPtr& positions, const TermPtr& term);
18  virtual ~TermSpans();
19 
21 
22 protected:
23  TermPositionsPtr positions;
25  int32_t _doc;
26  int32_t freq;
27  int32_t count;
28  int32_t position;
29 
30 public:
31  virtual bool next();
32  virtual bool skipTo(int32_t target);
33  virtual int32_t doc();
34  virtual int32_t start();
35  virtual int32_t end();
36  virtual Collection<ByteArray> getPayload();
37  virtual bool isPayloadAvailable();
38  virtual String toString();
39 
40  TermPositionsPtr getPositions();
41 };
42 
43 }
44 
45 #endif

clucene.sourceforge.net