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


FieldValueHitQueue.h
Go to the documentation of this file.
1 // 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 FIELDVALUEHITQUEUE_H
8 #define FIELDVALUEHITQUEUE_H
9 
10 #include "HitQueueBase.h"
11 #include "ScoreDoc.h"
12 
13 namespace Lucene {
14 
19 class LPPAPI FieldValueHitQueue : public HitQueueBase {
20 protected:
21  FieldValueHitQueue(Collection<SortFieldPtr> fields, int32_t size);
22 
23 public:
24  virtual ~FieldValueHitQueue();
25 
27 
28 protected:
33 
34 public:
39  static FieldValueHitQueuePtr create(Collection<SortFieldPtr> fields, int32_t size);
40 
41  Collection<FieldComparatorPtr> getComparators();
42  Collection<int32_t> getReverseMul();
43 
50  FieldDocPtr fillFields(const FieldValueHitQueueEntryPtr& entry);
51 
53  Collection<SortFieldPtr> getFields();
54 };
55 
56 class LPPAPI FieldValueHitQueueEntry : public ScoreDoc {
57 public:
58  FieldValueHitQueueEntry(int32_t slot, int32_t doc, double score);
59  virtual ~FieldValueHitQueueEntry();
60 
62 
63 public:
64  int32_t slot;
65 
66 public:
67  virtual String toString();
68 };
69 
70 }
71 
72 #endif
Collection< int32_t > reverseMul
Definition: FieldValueHitQueue.h:32
A hit queue for sorting by hits by terms in more than one field. Uses FieldCache::DEFAULT for maintai...
Definition: FieldValueHitQueue.h:19
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< FieldValueHitQueueEntry > FieldValueHitQueueEntryPtr
Definition: LuceneTypes.h:357
int32_t slot
Definition: FieldValueHitQueue.h:61
boost::shared_ptr< FieldValueHitQueue > FieldValueHitQueuePtr
Definition: LuceneTypes.h:356
boost::shared_ptr< FieldDoc > FieldDocPtr
Definition: LuceneTypes.h:350
Collection< FieldComparatorPtr > comparators
Definition: FieldValueHitQueue.h:31
Definition: FieldValueHitQueue.h:56
Expert: Returned by low-level search implementations.
Definition: ScoreDoc.h:16
Definition: HitQueueBase.h:14

clucene.sourceforge.net