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
// Copyright (c) 2009-2011 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
{
21
protected
:
22
FieldValueHitQueue
(
Collection<SortFieldPtr>
fields, int32_t size);
23
24
public
:
25
virtual
~
FieldValueHitQueue
();
26
27
LUCENE_CLASS
(
FieldValueHitQueue
);
28
29
protected
:
31
Collection<SortFieldPtr>
fields;
32
Collection<FieldComparatorPtr>
comparators
;
33
Collection<int32_t>
reverseMul
;
34
35
public
:
40
static
FieldValueHitQueuePtr
create(
Collection<SortFieldPtr>
fields, int32_t size);
41
42
Collection<FieldComparatorPtr>
getComparators();
43
Collection<int32_t>
getReverseMul();
44
51
FieldDocPtr
fillFields(
FieldValueHitQueueEntryPtr
entry);
52
54
Collection<SortFieldPtr>
getFields();
55
};
56
57
class
LPPAPI
FieldValueHitQueueEntry
:
public
ScoreDoc
58
{
59
public
:
60
FieldValueHitQueueEntry
(int32_t slot, int32_t doc,
double
score);
61
virtual
~
FieldValueHitQueueEntry
();
62
63
LUCENE_CLASS
(
FieldValueHitQueueEntry
);
64
65
public
:
66
int32_t
slot
;
67
68
public
:
69
virtual
String toString();
70
};
71
}
72
73
#endif
clucene.sourceforge.net