Lucene++ - a full-featured, c++ search engine
API Documentation


TermVectorsWriter.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 TERMVECTORSWRITER_H
8#define TERMVECTORSWRITER_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
15public:
16 TermVectorsWriter(const DirectoryPtr& directory, const String& segment, const FieldInfosPtr& fieldInfos);
18
20
21protected:
27
28public:
32
35 void addRawDocuments(const TermVectorsReaderPtr& reader, Collection<int32_t> tvdLengths, Collection<int32_t> tvfLengths, int32_t numDocs);
36
38 void close();
39};
40
41}
42
43#endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: TermVectorsWriter.h:14
IndexOutputPtr tvf
Definition: TermVectorsWriter.h:24
IndexOutputPtr tvx
Definition: TermVectorsWriter.h:22
void addAllDocVectors(Collection< TermFreqVectorPtr > vectors)
Add a complete document specified by all its term vectors. If document has no term vectors,...
Collection< UTF8ResultPtr > utf8Results
Definition: TermVectorsWriter.h:26
void close()
Close all streams.
IndexOutputPtr tvd
Definition: TermVectorsWriter.h:23
TermVectorsWriter(const DirectoryPtr &directory, const String &segment, const FieldInfosPtr &fieldInfos)
void addRawDocuments(const TermVectorsReaderPtr &reader, Collection< int32_t > tvdLengths, Collection< int32_t > tvfLengths, int32_t numDocs)
Do a bulk copy of numDocs documents from reader to our streams. This is used to expedite merging,...
FieldInfosPtr fieldInfos
Definition: TermVectorsWriter.h:25
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
boost::shared_ptr< TermVectorsReader > TermVectorsReaderPtr
Definition: LuceneTypes.h:256
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494

clucene.sourceforge.net