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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SpanFilterResult.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 SPANFILTERRESULT_H
8 #define SPANFILTERRESULT_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
15  class LPPAPI SpanFilterResult : public LuceneObject
16  {
17  public:
21 
22  virtual ~SpanFilterResult();
23 
25 
26  protected:
27  DocIdSetPtr docIdSet;
29 
30  public:
34  Collection<PositionInfoPtr> getPositions();
35 
37  DocIdSetPtr getDocIdSet();
38  };
39 
40  class LPPAPI PositionInfo : public LuceneObject
41  {
42  public:
43  PositionInfo(int32_t doc);
44  virtual ~PositionInfo();
45 
47 
48  protected:
49  int32_t doc;
51 
52  public:
53  void addPosition(int32_t start, int32_t end);
54  int32_t getDoc();
55  Collection<StartEndPtr> getPositions();
56  };
57 
58  class LPPAPI StartEnd : public LuceneObject
59  {
60  public:
61  StartEnd(int32_t start, int32_t end);
62  virtual ~StartEnd();
63 
65 
66  protected:
67  int32_t start;
68  int32_t end;
69 
70  public:
72  int32_t getEnd();
73 
75  int32_t getStart();
76  };
77 }
78 
79 #endif

clucene.sourceforge.net