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
TermsHashPerThread.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 TERMSHASHPERTHREAD_H
8
#define TERMSHASHPERTHREAD_H
9
10
#include "
InvertedDocConsumerPerThread.h
"
11
12
namespace
Lucene {
13
14
class
TermsHashPerThread
:
public
InvertedDocConsumerPerThread
{
15
public
:
16
TermsHashPerThread
(
const
DocInverterPerThreadPtr
& docInverterPerThread,
const
TermsHashPtr
& termsHash,
const
TermsHashPtr
&
nextTermsHash
,
const
TermsHashPerThreadPtr
& primaryPerThread);
17
virtual
~TermsHashPerThread
();
18
19
LUCENE_CLASS
(
TermsHashPerThread
);
20
21
public
:
22
DocInverterPerThreadWeakPtr
_docInverterPerThread
;
23
TermsHashWeakPtr
_termsHash
;
24
TermsHashPtr
nextTermsHash
;
25
TermsHashPerThreadWeakPtr
_primaryPerThread
;
26
TermsHashConsumerPerThreadPtr
consumer
;
27
TermsHashPerThreadPtr
nextPerThread
;
28
29
CharBlockPoolPtr
charPool
;
30
IntBlockPoolPtr
intPool
;
31
ByteBlockPoolPtr
bytePool
;
32
bool
primary
;
33
DocStatePtr
docState
;
34
35
Collection<RawPostingListPtr>
freePostings
;
36
int32_t
freePostingsCount
;
37
38
public
:
39
virtual
void
initialize
();
40
41
virtual
InvertedDocConsumerPerFieldPtr
addField
(
const
DocInverterPerFieldPtr
& docInverterPerField,
const
FieldInfoPtr
& fieldInfo);
42
virtual
void
abort
();
43
45
void
morePostings
();
46
47
virtual
void
startDocument
();
48
virtual
DocWriterPtr
finishDocument
();
49
51
void
reset
(
bool
recyclePostings);
52
53
protected
:
54
static
bool
noNullPostings
(
Collection<RawPostingListPtr>
postings, int32_t count,
const
String& details);
55
};
56
57
}
58
59
#endif
clucene.sourceforge.net