Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef CHECKSUMINDEXOUTPUT_H
8 #define CHECKSUMINDEXOUTPUT_H
10 #include <boost/crc.hpp>
37 virtual void writeBytes(
const uint8_t* b, int32_t offset, int32_t length);
54 virtual void seek(int64_t pos);
void finishCommit()
See prepareCommit.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
ChecksumIndexOutput(const IndexOutputPtr &main)
boost::crc_32_type checksum
Definition: ChecksumIndexOutput.h:26
virtual void flush()
Forces any buffered output to be written.
virtual int64_t length()
The number of bytes in the file.
IndexOutputPtr main
Definition: ChecksumIndexOutput.h:22
Writes bytes through to a primary IndexOutput, computing checksum. Note that you cannot use seek().
Definition: ChecksumIndexOutput.h:17
virtual ~ChecksumIndexOutput()
Definition: AbstractAllTermDocs.h:12
virtual void writeBytes(const uint8_t *b, int32_t offset, int32_t length)
Writes an array of bytes.
virtual void close()
Closes the stream to further operations.
virtual void writeByte(uint8_t b)
Writes a single byte.
void prepareCommit()
Starts but does not complete the commit of this file (= writing of the final checksum at the end)....
Abstract base class for output to a file in a Directory. A random-access output stream....
Definition: IndexOutput.h:18
virtual void seek(int64_t pos)
Sets current position in this file, where the next write will occur.
int64_t getChecksum()
Return calculated checksum.
virtual int64_t getFilePointer()
Returns the current position in this file, where the next write will occur.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net