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
FreqProxTermsWriterPerField.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 FREQPROXTERMSWRITERPERFIELD_H
8
#define FREQPROXTERMSWRITERPERFIELD_H
9
10
#include "
TermsHashConsumerPerField.h
"
11
12
namespace
Lucene
13
{
14
class
FreqProxTermsWriterPerField
:
public
TermsHashConsumerPerField
15
{
16
public
:
17
FreqProxTermsWriterPerField
(
TermsHashPerFieldPtr
termsHashPerField,
FreqProxTermsWriterPerThreadPtr
perThread,
FieldInfoPtr
fieldInfo
);
18
virtual
~FreqProxTermsWriterPerField
();
19
20
LUCENE_CLASS
(
FreqProxTermsWriterPerField
);
21
22
public
:
23
FreqProxTermsWriterPerThreadWeakPtr
_perThread
;
24
TermsHashPerFieldWeakPtr
_termsHashPerField
;
25
FieldInfoPtr
fieldInfo
;
26
DocStatePtr
docState
;
27
FieldInvertStatePtr
fieldState
;
28
bool
omitTermFreqAndPositions
;
29
PayloadAttributePtr
payloadAttribute
;
30
bool
hasPayloads
;
31
32
public
:
33
virtual
int32_t
getStreamCount
();
34
virtual
void
finish
();
35
virtual
void
skippingLongTerm
();
36
virtual
int32_t
compareTo
(
LuceneObjectPtr
other);
37
void
reset
();
38
virtual
bool
start
(
Collection<FieldablePtr>
fields, int32_t count);
39
virtual
void
start
(
FieldablePtr
field);
40
void
writeProx
(
FreqProxTermsWriterPostingListPtr
p, int32_t proxCode);
41
virtual
void
newTerm
(
RawPostingListPtr
p);
42
virtual
void
addTerm
(
RawPostingListPtr
p);
43
void
abort
();
44
};
45
}
46
47
#endif
clucene.sourceforge.net