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


SpanFilterResult.h
Go to the documentation of this file.
1 // 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 SPANFILTERRESULT_H
8 #define SPANFILTERRESULT_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI SpanFilterResult : public LuceneObject {
16 public:
20 
21  virtual ~SpanFilterResult();
22 
24 
25 protected:
28 
29 public:
34 
37 };
38 
39 class LPPAPI PositionInfo : public LuceneObject {
40 public:
41  PositionInfo(int32_t doc);
42  virtual ~PositionInfo();
43 
45 
46 protected:
47  int32_t doc;
49 
50 public:
51  void addPosition(int32_t start, int32_t end);
52  int32_t getDoc();
54 };
55 
56 class LPPAPI StartEnd : public LuceneObject {
57 public:
58  StartEnd(int32_t start, int32_t end);
59  virtual ~StartEnd();
60 
62 
63 protected:
64  int32_t start;
65  int32_t end;
66 
67 public:
69  int32_t getEnd();
70 
72  int32_t getStart();
73 };
74 
75 }
76 
77 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: SpanFilterResult.h:39
Collection< StartEndPtr > getPositions()
void addPosition(int32_t start, int32_t end)
Collection< StartEndPtr > positions
Definition: SpanFilterResult.h:48
PositionInfo(int32_t doc)
int32_t doc
Definition: SpanFilterResult.h:44
The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery.
Definition: SpanFilterResult.h:15
Collection< PositionInfoPtr > positions
Definition: SpanFilterResult.h:27
DocIdSetPtr docIdSet
Definition: SpanFilterResult.h:23
SpanFilterResult(const DocIdSetPtr &docIdSet, Collection< PositionInfoPtr > positions)
DocIdSetPtr getDocIdSet()
Returns the docIdSet.
Collection< PositionInfoPtr > getPositions()
The first entry in the array corresponds to the first "on" bit. Entries are increasing by document or...
Definition: SpanFilterResult.h:56
StartEnd(int32_t start, int32_t end)
virtual ~StartEnd()
int32_t getEnd()
int32_t start
Definition: SpanFilterResult.h:61
int32_t getStart()
int32_t end
Definition: SpanFilterResult.h:65
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323

clucene.sourceforge.net