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
include
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
clucene.sourceforge.net