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


Loading...
Searching...
No Matches
FieldValueHitQueue.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 FIELDVALUEHITQUEUE_H
8#define FIELDVALUEHITQUEUE_H
9
10#include "HitQueueBase.h"
11#include "ScoreDoc.h"
12
13namespace Lucene {
14
55
56class LPPAPI FieldValueHitQueueEntry : public ScoreDoc {
57public:
58 FieldValueHitQueueEntry(int32_t slot, int32_t doc, double score);
60
62
63public:
64 int32_t slot;
65
66public:
67 virtual String toString();
68};
69
70}
71
72#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
Definition FieldValueHitQueue.h:56
int32_t slot
Definition FieldValueHitQueue.h:64
FieldValueHitQueueEntry(int32_t slot, int32_t doc, double score)
virtual String toString()
Returns a string representation of the object.
A hit queue for sorting by hits by terms in more than one field. Uses FieldCache::DEFAULT for maintai...
Definition FieldValueHitQueue.h:19
Collection< int32_t > reverseMul
Definition FieldValueHitQueue.h:32
FieldDocPtr fillFields(const FieldValueHitQueueEntryPtr &entry)
Given a queue Entry, creates a corresponding FieldDoc that contains the values used to sort the given...
FieldValueHitQueue(Collection< SortFieldPtr > fields, int32_t size)
Collection< int32_t > getReverseMul()
Collection< FieldComparatorPtr > comparators
Definition FieldValueHitQueue.h:31
Collection< FieldComparatorPtr > getComparators()
Collection< SortFieldPtr > fields
Stores the sort criteria being used.
Definition FieldValueHitQueue.h:30
static FieldValueHitQueuePtr create(Collection< SortFieldPtr > fields, int32_t size)
Creates a hit queue sorted by the given list of fields.
Collection< SortFieldPtr > getFields()
Returns the SortFields being used by this hit queue.
Definition HitQueueBase.h:14
Expert: Returned by low-level search implementations.
Definition ScoreDoc.h:16
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< FieldValueHitQueue > FieldValueHitQueuePtr
Definition LuceneTypes.h:356
boost::shared_ptr< FieldDoc > FieldDocPtr
Definition LuceneTypes.h:350
boost::shared_ptr< FieldValueHitQueueEntry > FieldValueHitQueueEntryPtr
Definition LuceneTypes.h:357

clucene.sourceforge.net