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
TermVectorsWriter.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 TERMVECTORSWRITER_H
8
#define TERMVECTORSWRITER_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
13
{
14
class
TermVectorsWriter
:
public
LuceneObject
15
{
16
public
:
17
TermVectorsWriter
(
DirectoryPtr
directory,
const
String& segment,
FieldInfosPtr
fieldInfos
);
18
virtual
~TermVectorsWriter
();
19
20
LUCENE_CLASS
(
TermVectorsWriter
);
21
22
protected
:
23
IndexOutputPtr
tvx
;
24
IndexOutputPtr
tvd
;
25
IndexOutputPtr
tvf
;
26
FieldInfosPtr
fieldInfos
;
27
Collection<UTF8ResultPtr>
utf8Results
;
28
29
public
:
32
void
addAllDocVectors
(
Collection<TermFreqVectorPtr>
vectors);
33
36
void
addRawDocuments
(
TermVectorsReaderPtr
reader,
Collection<int32_t>
tvdLengths,
Collection<int32_t>
tvfLengths, int32_t numDocs);
37
39
void
close
();
40
};
41
}
42
43
#endif
clucene.sourceforge.net