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


Loading...
Searching...
No Matches
FieldDocSortedHitQueue.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 FIELDDOCSORTEDHITQUEUE_H
8#define FIELDDOCSORTEDHITQUEUE_H
9
10#include "PriorityQueue.h"
11
12namespace Lucene {
13
16class FieldDocSortedHitQueue : public PriorityQueue<FieldDocPtr> {
17public:
20
22
23public:
25
26 // used in the case where the fields are sorted by locale based strings
28
29public:
35
38
39protected:
45
47 virtual bool lessThan(const FieldDocPtr& first, const FieldDocPtr& second);
48};
49
50}
51
52#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
Collects sorted results from Searchable's and collates them. The elements put into this queue must be...
Definition FieldDocSortedHitQueue.h:16
virtual bool lessThan(const FieldDocPtr &first, const FieldDocPtr &second)
Returns whether first is less relevant than second.
Collection< SortFieldPtr > fields
Definition FieldDocSortedHitQueue.h:24
void setFields(Collection< SortFieldPtr > fields)
Allows redefinition of sort fields if they are null. This is to handle the case using ParallelMultiSe...
FieldDocSortedHitQueue(int32_t size)
Collection< CollatorPtr > collators
Definition FieldDocSortedHitQueue.h:27
Collection< CollatorPtr > hasCollators(Collection< SortFieldPtr > fields)
Returns an array of collators, possibly null. The collators correspond to any SortFields which were g...
Collection< SortFieldPtr > getFields()
Returns the fields being used to sort.
A PriorityQueue maintains a partial ordering of its elements such that the least element can always b...
Definition PriorityQueue.h:20
int32_t size() const
Returns the number of elements currently stored in the PriorityQueue.
Definition PriorityQueue.h:133
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< FieldDoc > FieldDocPtr
Definition LuceneTypes.h:350

clucene.sourceforge.net