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


Loading...
Searching...
No Matches
SpanFilterResult.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 SPANFILTERRESULT_H
8#define SPANFILTERRESULT_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
38
39class LPPAPI PositionInfo : public LuceneObject {
40public:
41 PositionInfo(int32_t doc);
42 virtual ~PositionInfo();
43
45
46protected:
47 int32_t doc;
49
50public:
51 void addPosition(int32_t start, int32_t end);
52 int32_t getDoc();
54};
55
56class LPPAPI StartEnd : public LuceneObject {
57public:
58 StartEnd(int32_t start, int32_t end);
59 virtual ~StartEnd();
60
62
63protected:
64 int32_t start;
65 int32_t end;
66
67public:
69 int32_t getEnd();
70
72 int32_t getStart();
73};
74
75}
76
77#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition SpanFilterResult.h:39
void addPosition(int32_t start, int32_t end)
Collection< StartEndPtr > getPositions()
Collection< StartEndPtr > positions
Definition SpanFilterResult.h:48
PositionInfo(int32_t doc)
int32_t doc
Definition SpanFilterResult.h:47
The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery.
Definition SpanFilterResult.h:15
Collection< PositionInfoPtr > getPositions()
The first entry in the array corresponds to the first "on" bit. Entries are increasing by document or...
Collection< PositionInfoPtr > positions
Definition SpanFilterResult.h:27
DocIdSetPtr docIdSet
Definition SpanFilterResult.h:26
SpanFilterResult(const DocIdSetPtr &docIdSet, Collection< PositionInfoPtr > positions)
DocIdSetPtr getDocIdSet()
Returns the docIdSet.
Definition SpanFilterResult.h:56
StartEnd(int32_t start, int32_t end)
virtual ~StartEnd()
int32_t getEnd()
int32_t start
Definition SpanFilterResult.h:64
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