Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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
12
namespace
Lucene
{
13
14
class
TermVectorsWriter
:
public
LuceneObject
{
15
public
:
16
TermVectorsWriter
(
const
DirectoryPtr
& directory,
const
String& segment,
const
FieldInfosPtr
&
fieldInfos
);
17
virtual
~TermVectorsWriter
();
18
19
LUCENE_CLASS
(
TermVectorsWriter
);
20
21
protected
:
22
IndexOutputPtr
tvx
;
23
IndexOutputPtr
tvd
;
24
IndexOutputPtr
tvf
;
25
FieldInfosPtr
fieldInfos
;
26
Collection<UTF8ResultPtr>
utf8Results
;
27
28
public
:
31
void
addAllDocVectors
(
Collection<TermFreqVectorPtr>
vectors);
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
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene::TermVectorsWriter::tvf
IndexOutputPtr tvf
Definition
TermVectorsWriter.h:24
Lucene::TermVectorsWriter::tvx
IndexOutputPtr tvx
Definition
TermVectorsWriter.h:22
Lucene::TermVectorsWriter::addAllDocVectors
void addAllDocVectors(Collection< TermFreqVectorPtr > vectors)
Add a complete document specified by all its term vectors. If document has no term vectors,...
Lucene::TermVectorsWriter::~TermVectorsWriter
virtual ~TermVectorsWriter()
Lucene::TermVectorsWriter::utf8Results
Collection< UTF8ResultPtr > utf8Results
Definition
TermVectorsWriter.h:26
Lucene::TermVectorsWriter::close
void close()
Close all streams.
Lucene::TermVectorsWriter::tvd
IndexOutputPtr tvd
Definition
TermVectorsWriter.h:23
Lucene::TermVectorsWriter::TermVectorsWriter
TermVectorsWriter(const DirectoryPtr &directory, const String &segment, const FieldInfosPtr &fieldInfos)
Lucene::TermVectorsWriter::addRawDocuments
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,...
Lucene::TermVectorsWriter::fieldInfos
FieldInfosPtr fieldInfos
Definition
TermVectorsWriter.h:25
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition
LuceneTypes.h:127
Lucene::TermVectorsReaderPtr
boost::shared_ptr< TermVectorsReader > TermVectorsReaderPtr
Definition
LuceneTypes.h:256
Lucene::DirectoryPtr
boost::shared_ptr< Directory > DirectoryPtr
Definition
LuceneTypes.h:489
Lucene::IndexOutputPtr
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition
LuceneTypes.h:494
clucene.sourceforge.net