Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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
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
26
LUCENE_CLASS
(
FieldValueHitQueue
);
27
28
protected
:
30
Collection<SortFieldPtr>
fields
;
31
Collection<FieldComparatorPtr>
comparators
;
32
Collection<int32_t>
reverseMul
;
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
61
LUCENE_CLASS
(
FieldValueHitQueueEntry
);
62
63
public
:
64
int32_t
slot
;
65
66
public
:
67
virtual
String
toString
();
68
};
69
70
}
71
72
#endif
HitQueueBase.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
ScoreDoc.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::FieldValueHitQueueEntry::slot
int32_t slot
Definition
FieldValueHitQueue.h:64
Lucene::FieldValueHitQueueEntry::FieldValueHitQueueEntry
FieldValueHitQueueEntry(int32_t slot, int32_t doc, double score)
Lucene::FieldValueHitQueueEntry::~FieldValueHitQueueEntry
virtual ~FieldValueHitQueueEntry()
Lucene::FieldValueHitQueueEntry::toString
virtual String toString()
Returns a string representation of the object.
Lucene::FieldValueHitQueue::reverseMul
Collection< int32_t > reverseMul
Definition
FieldValueHitQueue.h:32
Lucene::FieldValueHitQueue::~FieldValueHitQueue
virtual ~FieldValueHitQueue()
Lucene::FieldValueHitQueue::fillFields
FieldDocPtr fillFields(const FieldValueHitQueueEntryPtr &entry)
Given a queue Entry, creates a corresponding FieldDoc that contains the values used to sort the given...
Lucene::FieldValueHitQueue::FieldValueHitQueue
FieldValueHitQueue(Collection< SortFieldPtr > fields, int32_t size)
Lucene::FieldValueHitQueue::getReverseMul
Collection< int32_t > getReverseMul()
Lucene::FieldValueHitQueue::comparators
Collection< FieldComparatorPtr > comparators
Definition
FieldValueHitQueue.h:31
Lucene::FieldValueHitQueue::getComparators
Collection< FieldComparatorPtr > getComparators()
Lucene::FieldValueHitQueue::fields
Collection< SortFieldPtr > fields
Stores the sort criteria being used.
Definition
FieldValueHitQueue.h:30
Lucene::FieldValueHitQueue::create
static FieldValueHitQueuePtr create(Collection< SortFieldPtr > fields, int32_t size)
Creates a hit queue sorted by the given list of fields.
Lucene::FieldValueHitQueue::getFields
Collection< SortFieldPtr > getFields()
Returns the SortFields being used by this hit queue.
Lucene::HitQueueBase::HitQueueBase
HitQueueBase(int32_t size)
Lucene::HitQueueBase::size
virtual int32_t size()
Lucene::ScoreDoc::doc
int32_t doc
A hit document's number.
Definition
ScoreDoc.h:29
Lucene::ScoreDoc::score
double score
The score of this document for the query.
Definition
ScoreDoc.h:25
Lucene::ScoreDoc::ScoreDoc
ScoreDoc(int32_t doc, double score)
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::FieldValueHitQueueEntryPtr
boost::shared_ptr< FieldValueHitQueueEntry > FieldValueHitQueueEntryPtr
Definition
LuceneTypes.h:357
Lucene::FieldDocPtr
boost::shared_ptr< FieldDoc > FieldDocPtr
Definition
LuceneTypes.h:350
Lucene::FieldValueHitQueuePtr
boost::shared_ptr< FieldValueHitQueue > FieldValueHitQueuePtr
Definition
LuceneTypes.h:356
clucene.sourceforge.net