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
SpanFirstQuery.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 SPANFIRSTQUERY_H
8 #define SPANFIRSTQUERY_H
9
10 #include "SpanQuery.h"
11 #include "Spans.h"
12
13 namespace Lucene
14 {
16 class LPPAPI SpanFirstQuery : public SpanQuery
17 {
18 public:
20 SpanFirstQuery(SpanQueryPtr match, int32_t end);
21 virtual ~SpanFirstQuery();
22
23 LUCENE_CLASS(SpanFirstQuery);
24
25 protected:
26 SpanQueryPtr match;
27 int32_t end;
28
29 public:
30 using SpanQuery::toString;
31
33 SpanQueryPtr getMatch();
34
36 int32_t getEnd();
37
38 virtual String getField();
39 virtual String toString(const String& field);
40 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
41 virtual void extractTerms(SetTerm terms);
42 virtual SpansPtr getSpans(IndexReaderPtr reader);
43 virtual QueryPtr rewrite(IndexReaderPtr reader);
44
45 virtual bool equals(LuceneObjectPtr other);
46 virtual int32_t hashCode();
47
48 friend class FirstSpans;
49 };
50 }
51
52 #endif

clucene.sourceforge.net