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

clucene.sourceforge.net