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
TermVectorsTermsWriterPerField.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 TERMVECTORSTERMSWRITERPERFIELD_H
8
#define TERMVECTORSTERMSWRITERPERFIELD_H
9
10
#include "
TermsHashConsumerPerField.h
"
11
12
namespace
Lucene {
13
14
class
TermVectorsTermsWriterPerField
:
public
TermsHashConsumerPerField
{
15
public
:
16
TermVectorsTermsWriterPerField
(
const
TermsHashPerFieldPtr
& termsHashPerField,
const
TermVectorsTermsWriterPerThreadPtr
& perThread,
const
FieldInfoPtr
&
fieldInfo
);
17
virtual
~TermVectorsTermsWriterPerField
();
18
19
LUCENE_CLASS
(
TermVectorsTermsWriterPerField
);
20
21
public
:
22
TermVectorsTermsWriterPerThreadWeakPtr
_perThread
;
23
TermsHashPerFieldWeakPtr
_termsHashPerField
;
24
TermVectorsTermsWriterWeakPtr
_termsWriter
;
25
FieldInfoPtr
fieldInfo
;
26
DocStateWeakPtr
_docState
;
27
FieldInvertStateWeakPtr
_fieldState
;
28
29
bool
doVectors
;
30
bool
doVectorPositions
;
31
bool
doVectorOffsets
;
32
33
int32_t
maxNumPostings
;
34
OffsetAttributePtr
offsetAttribute
;
35
36
public
:
37
virtual
int32_t
getStreamCount
();
38
virtual
bool
start
(
Collection<FieldablePtr>
fields, int32_t count);
39
virtual
void
abort
();
40
43
virtual
void
finish
();
44
45
void
shrinkHash
();
46
47
virtual
void
start
(
const
FieldablePtr
& field);
48
virtual
void
newTerm
(
const
RawPostingListPtr
& p0);
49
virtual
void
addTerm
(
const
RawPostingListPtr
& p0);
50
virtual
void
skippingLongTerm
();
51
};
52
53
}
54
55
#endif
clucene.sourceforge.net