Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef COMPOUNDFILEWRITER_H
8 #define COMPOUNDFILEWRITER_H
62 void addFile(
const String& file);
void close()
Merge files with the extensions added up to now. All files with these extensions are combined sequent...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
bool merged
Definition: CompoundFileWriter.h:50
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
int64_t directoryOffset
temporary holder for the start of directory entry for this file
Definition: CompoundFileWriter.h:40
boost::shared_ptr< CheckAbort > CheckAbortPtr
Definition: LuceneTypes.h:94
String fileName
Definition: CompoundFileWriter.h:47
boost::weak_ptr< Directory > DirectoryWeakPtr
Definition: LuceneTypes.h:489
Combines multiple files into a single compound file. The file format: VInt fileCount {Directory} file...
Definition: CompoundFileWriter.h:27
Definition: AbstractAllTermDocs.h:12
Base class for all Lucene classes.
Definition: LuceneObject.h:31
DirectoryPtr getDirectory()
Returns the directory of the compound file.
void addFile(const String &file)
Add a source stream. file is the string by which the sub-stream will be known in the compound stream.
String file
source file
Definition: CompoundFileWriter.h:37
String getName()
Returns the name of the compound file.
Definition: CompoundFileWriter.h:35
HashSet< String > ids
Definition: CompoundFileWriter.h:48
void copyFile(const FileEntry &source, const IndexOutputPtr &os, ByteArray buffer)
Copy the contents of the file with specified extension into the provided output stream....
Collection< FileEntry > entries
Definition: CompoundFileWriter.h:49
CompoundFileWriter(const DirectoryPtr &dir, const String &name, const CheckAbortPtr &checkAbort=CheckAbortPtr())
int64_t dataOffset
temporary holder for the start of this file's data section
Definition: CompoundFileWriter.h:43
DirectoryWeakPtr _directory
Definition: CompoundFileWriter.h:46
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
virtual ~CompoundFileWriter()
CheckAbortPtr checkAbort
Definition: CompoundFileWriter.h:51
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net