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
FieldDocSortedHitQueue.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 FIELDDOCSORTEDHITQUEUE_H
8 #define FIELDDOCSORTEDHITQUEUE_H
9
10 #include "PriorityQueue.h"
11
12 namespace Lucene
13 {
16 class FieldDocSortedHitQueue : public PriorityQueue<FieldDocPtr>
17 {
18 public:
19 FieldDocSortedHitQueue(int32_t size);
20 virtual ~FieldDocSortedHitQueue();
21
22 LUCENE_CLASS(FieldDocSortedHitQueue);
23
24 public:
25 Collection<SortFieldPtr> fields;
26
27 // used in the case where the fields are sorted by locale based strings
28 Collection<CollatorPtr> collators;
29
30 public:
35 void setFields(Collection<SortFieldPtr> fields);
36
38 Collection<SortFieldPtr> getFields();
39
40 protected:
45 Collection<CollatorPtr> hasCollators(Collection<SortFieldPtr> fields);
46
48 virtual bool lessThan(const FieldDocPtr& first, const FieldDocPtr& second);
49 };
50 }
51
52 #endif

clucene.sourceforge.net