CLucene - a full-featured, c++ search engine
API Documentation
#include <IndexOutput.h>
Public Member Functions | |
LUCENE_STATIC_CONSTANT (int32_t, BUFFER_SIZE=16384) | |
BufferedIndexOutput () | |
virtual | ~BufferedIndexOutput () |
virtual void | writeByte (const uint8_t b) |
Writes a single byte. | |
virtual void | writeBytes (const uint8_t *b, const int32_t length) |
Writes an array of bytes. | |
virtual void | close () |
Closes this stream to further operations. | |
int64_t | getFilePointer () const |
Returns the current position in this file, where the next write will occur. | |
virtual void | seek (const int64_t pos) |
Sets current position in this file, where the next write will occur. | |
virtual int64_t | length () const =0 |
The number of bytes in the file. | |
void | flush () |
Forces any buffered output to be written. | |
Protected Member Functions | |
virtual void | flushBuffer (const uint8_t *b, const int32_t len)=0 |
Expert: implements buffer write. |
lucene::store::BufferedIndexOutput::BufferedIndexOutput | ( | ) |
virtual lucene::store::BufferedIndexOutput::~BufferedIndexOutput | ( | ) | [virtual] |
lucene::store::BufferedIndexOutput::LUCENE_STATIC_CONSTANT | ( | int32_t | , | |
BUFFER_SIZE | = 16384 | |||
) |
virtual void lucene::store::BufferedIndexOutput::writeByte | ( | const uint8_t | b | ) | [virtual] |
virtual void lucene::store::BufferedIndexOutput::writeBytes | ( | const uint8_t * | b, | |
const int32_t | length | |||
) | [virtual] |
Writes an array of bytes.
b | the bytes to write | |
length | the number of bytes to write |
Implements lucene::store::IndexOutput.
virtual void lucene::store::BufferedIndexOutput::close | ( | ) | [virtual] |
int64_t lucene::store::BufferedIndexOutput::getFilePointer | ( | ) | const [virtual] |
Returns the current position in this file, where the next write will occur.
Implements lucene::store::IndexOutput.
virtual void lucene::store::BufferedIndexOutput::seek | ( | const int64_t | pos | ) | [virtual] |
Sets current position in this file, where the next write will occur.
Implements lucene::store::IndexOutput.
virtual int64_t lucene::store::BufferedIndexOutput::length | ( | ) | const [pure virtual] |
void lucene::store::BufferedIndexOutput::flush | ( | ) | [virtual] |
virtual void lucene::store::BufferedIndexOutput::flushBuffer | ( | const uint8_t * | b, | |
const int32_t | len | |||
) | [protected, pure virtual] |
Expert: implements buffer write.
Writes bytes at the current position in the output.
b | the bytes to write | |
len | the number of bytes to write |