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
include
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
:
20
SpanFilterResult
(
DocIdSetPtr
docIdSet,
Collection<PositionInfoPtr>
positions);
21
22
virtual
~
SpanFilterResult
();
23
24
LUCENE_CLASS
(
SpanFilterResult
);
25
26
protected
:
27
DocIdSetPtr
docIdSet;
28
Collection<PositionInfoPtr>
positions
;
// Spans spans
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
46
LUCENE_CLASS
(
PositionInfo
);
47
48
protected
:
49
int32_t doc;
50
Collection<StartEndPtr>
positions
;
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
64
LUCENE_CLASS
(
StartEnd
);
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